Tips and Tricks
Keep all tips and tricks learned in one place.
Monday, December 5, 2011
Remove a folder except some files
mkdir folder1
touch file1, file2, file3, file4
rm -rf -- !(@(file1|file2)*)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment