Re: compress files

2013-02-19 Thread Ralf Mardorf
If there really is the need to compress audio data, then + 1 for lossless codecs and if I need a simple date output e.g. to dump freebsd, I'm using dumpstart=$(date "+%Y%m%d_%H%M%S") but with "date" you can do nice things, when using UNIX time, that aren't that simple too. -- To UNSUBSCRI

Re: compress files

2013-02-19 Thread Bob Proulx
Bob Proulx wrote: > File wav2z or some such name. Use 'oggenc' if you prefer instead of > 'flac'. > > #!/bin/sh > flac "$1" && rm "$1" > > Call it from find. No need for xargs. Better without. > > find . -mtime $AGE -exec wav2z {} + > > These can also be combined into a single find com

Re: compress files

2013-02-19 Thread Bob Proulx
Kelly Clowers wrote: > tsit...@linuxmail.org wrote: > > #!/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 > > >

Re: compress files

2013-02-19 Thread Kelly Clowers
On Tue, Feb 19, 2013 at 6:24 AM, 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 "${F

Re: compress files

2013-02-19 Thread Chris Bannister
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.

Re: compress files

2013-02-19 Thread David Guntner
Tom Grace grabbed a keyboard and wrote: > On 19/02/13 14:24, tsit...@linuxmail.org wrote: >> any suggestions please? > > Have a look at the output of "date --help", under the FORMAT section. > You want something like "date +%b" to get "Feb". You might also consider > naming the files year-numerica

Re: compress files

2013-02-19 Thread Morel Bérenger
Le Mar 19 février 2013 15:37, Darac Marjal a écrit : > On Tue, Feb 19, 2013 at 09:24:23AM -0500, tsit...@linuxmail.org wrote: > > Fellas and Dames, if you please. > > [cut] > > man date > I must admit, I prefer having dates with Dames than with Fellas :D -- To UNSUBSCRIBE, email to debian-user-

Re: compress files

2013-02-19 Thread Morel Bérenger
Le Mar 19 février 2013 15:24, tsit...@linuxmail.org a écrit : > 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 "${FILE

Re: compress files

2013-02-19 Thread Tom Grace
On 19/02/13 14:24, tsit...@linuxmail.org wrote: > any suggestions please? Have a look at the output of "date --help", under the FORMAT section. You want something like "date +%b" to get "Feb". You might also consider naming the files year-numerical_month to make sorting easier later. -- To UNSU

Re: compress files

2013-02-19 Thread Darac Marjal
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. Fellas and Dames, if you please. > >i created a small script to do the job. [cut] > >any suggestions please? > man date