On Tue, Feb 19, 2013 at 09:24:23AM -0500, tsit...@linuxmail.org wrote:
> hello fellas. i was looking for a way to compress files (.wav) older than 30 
> days.
> i created a small script to do the job.
> #!/bin.bash
> 
> FILES=`find . -mtime -30 | xargs`
> tar --no-recursion -czf backup_ *feb*_2013.tgz "${FILES}"
> rm -rf "${FILES}"
> the compressed files have the following format
> g303- *20130205*-060552-1360037152.419.wav
> i am stuck on how to edit the script so it will automatically create the 
> month of the backup. Now the naming is manual.
> any suggestions please?

man date

-- 
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing." --- Malcolm X


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130219152351.GA8898@tal

Reply via email to