[Wolves] Tar without directory structure
tmj at tc.bham.ac.uk
Fri Mar 4 11:12:24 GMT 2005
Wayne Morris wrote:
> I'm using tar in a cron job to archive security cam pics
> but when I use tar -cf /home/test/campics/images.tar
> I get images correctly tarred, but nested inside folders corresponding
> to the path.
> How do i get just the images directly inside images.tar without the
> directory structure?
Here is a little script that will do that for you:
for file in `ls $regex`
tar rf $tarfile $file
More information about the Wolves