To tar only files (not subdirectories) in the current directory use this command:
$ tar cvf files.tar ./`ls -l | grep -v '^d' | awk '{ print $9 }'`
Subscribe to:
Post Comments (Atom)
Blog Your Face on technology, history, reviews, magic the gathering and getting things done
1 comment:
Thanks, simple and effective !
Post a Comment