May 21, 2009 #1 knyam Technical User Mar 18, 2004 16 ZW Hie Is there a way in which you can use tar command to archive a range of files? I would want to archive all directories except those starting with c*. i.e achive files from a to b and d to z. how best can this be done?
Hie Is there a way in which you can use tar command to archive a range of files? I would want to archive all directories except those starting with c*. i.e achive files from a to b and d to z. how best can this be done?
May 21, 2009 #2 Annihilannic MIS Jun 22, 2000 6,317 AU Something like this perhaps (assuming these directories are in the current working directory)? Code: tar cvf /tmp/archive.tar [!c]* Annihilannic. Upvote 0 Downvote
Something like this perhaps (assuming these directories are in the current working directory)? Code: tar cvf /tmp/archive.tar [!c]* Annihilannic.
May 21, 2009 Thread starter #3 knyam Technical User Mar 18, 2004 16 ZW It has worked. Thank you. Upvote 0 Downvote