Skip to content

Instantly share code, notes, and snippets.

@glenndavy
Created August 5, 2009 03:40
Show Gist options
  • Select an option

  • Save glenndavy/162490 to your computer and use it in GitHub Desktop.

Select an option

Save glenndavy/162490 to your computer and use it in GitHub Desktop.
##SCREEN FIRST
#This just lets us detatch later without needing to keep terminal connection up
$>screen
$>cd todelete
$>files=*
$>for i in $files
>do
>rm -fr $i
>echo $i
>sleep 1
>done
$>
### Then ^AD <- This detatches from screen, screen -x lets you check in later.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment