Skip to content

Instantly share code, notes, and snippets.

@gnubyexample
Created February 6, 2012 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnubyexample/1751883 to your computer and use it in GitHub Desktop.
Save gnubyexample/1751883 to your computer and use it in GitHub Desktop.
seasonal state
#!/bin/dash
ls -d /* | egrep -v '^(/backup|/bak|/lost\+found|/mnt|/proc|/selinux|/service|/sys|/tmp|/media|/srv|/run)' | /usr/bin/winter > ~/localhost.winter
ls -d /* | egrep -v '^(/backup|/bak|/lost\+found|/mnt|/proc|/selinux|/sys)' | xargs -r -i find {} -maxdepth 1 -type d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment