Things to remember
Thursday, July 29, 2010
How do I delete all but one directory in Linux
$ shopt -s extglob
$ rm -rf !(savedir)
you Korn shell users can ommit the first line.
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment