EnderUNIX Team.


EnderUNIX tips

Mail to My Friend , Home Page

[ Shell Scripting ]

"Tar only the files - 2" - Ülkü SAYILAN - (2004-07-03 16:08:25)   [4850]

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