EnderUNIX Team.


EnderUNIX tips

Mail to My Friend , Home Page

[ Shell Scripting ]

"TAR ONLY THE FILES" - Ülkü SAYILAN - (2003-12-10 23:09:32)   [8983]

TAR ONLY THE FILES

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 }'`


Mail to My Friend , Home Page