04-22-2009
Question
Hi.
Thanks a lot for helping me.
There is one thing I do not understand.
I 've four wav files with a different date.
-rw-r----- 1 dtuser staff 258904 Apr 22 09:53 3210223758_73072441618_20090415151440972.wav
-rw-r----- 1 dtuser staff 192504 Apr 21 09:53 3210224056_73073919768_20090418102231949.wav
-rw-r----- 1 dtuser staff 258904 Apr 20 09:53 3210223758_73072441618_20090415151440972.wav
-rw-r----- 1 dtuser staff 192504 Apr 19 09:53 3210224056_73073919768_20090418102231949.wav
Using the recommended commands in my test scrip have no making any sense.
find ${MAIN_DIR} -name *.wav -mtime -3 > FILE_LIST
or
find ${MAIN_DIR} -name \*.wav -mtime -3 -exec mv {} \;
-mtime -3 or -mtime -5 or -mtime -10 makes no difference.
The result is that all files are compressed and removed instaed of the files of three days old.
Best regards.
Eddy.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there,
I am trying to tar a number of files held in a specific folder. I am only interested in archiving files older than 30 days. Having read through the man entries and all available documentation I thought I'd cracked the coomand with
tar -c -z -v -N 15/04/2004 -f /wfch.tar *
This... (6 Replies)
Discussion started by: wfch
6 Replies
2. UNIX for Dummies Questions & Answers
need help with this ...
Find files older than 5 days and remove tem after listing
list "test" file older than 5 days and then remove them (1 Reply)
Discussion started by: ypatel6871
1 Replies
3. Shell Programming and Scripting
Hi,
I need to remove files (*.trc) which are older than 30 days from one location.
My problem is there I do not want to visit any of the directories at that location. I want to search files at that particular location only (need to skip directorys at that location). maxdepth option is there... (6 Replies)
Discussion started by: malaymaru
6 Replies
4. Solaris
Hello,
I need help in finding files older than x days and creating a single consolidated tar file combining them. Can anyone please provide me a script?
Thanks,
Dawn (3 Replies)
Discussion started by: Dawn Bosch
3 Replies
5. Shell Programming and Scripting
Hi all. Here's my situation:
I have performance reports that run every 30 minutes saved in the format:
stats_report_11251000.txt
stats_report_11251030.txt
stats_report_11251100.txt
stats_report_11251130.txt
(Obviously run at Nov 25 10 AM, 10:30 AM, 11 AM and so on...)
I would... (2 Replies)
Discussion started by: jamie_collins
2 Replies
6. Shell Programming and Scripting
Hi
I need help in the script which looks at a contorl file which has a list of file names like xxxx.12345 and I want to take only xxxxx and search in a specific directory and remove the file if its older than 60 days
I have written something like this.. but seems to be wrong... (1 Reply)
Discussion started by: antointoronto
1 Replies
7. Shell Programming and Scripting
Hi All,
I am new to the scripting and using solaris 10 OS. Please suggest me from the below script which modifications need to be done to delete the files more that 2days older. Current script is deleting existing file.
# Remove old explorer runs if needed
DIR=`dirname ${EXP_TARGET}`
if ... (2 Replies)
Discussion started by: Navkreddy
2 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
how to compress the directories which is older 7 days.
If any one knows please help me this is urgent.
Thanks in advance (3 Replies)
Discussion started by: rameshpagadala
3 Replies
9. Shell Programming and Scripting
I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in current directory and sub-directories also?
I found one command which is to create gz file for the... (4 Replies)
Discussion started by: Mallikgm
4 Replies
10. Shell Programming and Scripting
hello everyone.
in /opt/abc every night there is a new folder created. in that folder there is aseries of files created for that day.
i would like to run a script every Sunday night at 02:00 to compress each file separately (preserving its name) who is older than 2 days.
i have found this... (2 Replies)
Discussion started by: atux
2 Replies
LEARN ABOUT DEBIAN
soundstretch
soundstretch(1) General Commands Manual soundstretch(1)
NAME
soundstretch - audio processing utility
SYNOPSIS
soundstretch infile.wav outfile.wav [options]
DESCRIPTION
SoundStretch is a simple command-line application that can change tempo, pitch and playback rates of WAV sound files. This program is
intended primarily to demonstrate how the "SoundTouch" library can be used to process sound in your own program, but it can as well be used
for processing sound files.
USAGE
SoundStretch Usage syntax:
"infile.wav" Name of the input sound data file (in .WAV audio file format). Give "stdin" as filename to use standard input pipe.
"outfile.wav" Name of the output sound file where the resulting sound is saved (in .WAV audio file format). This parameter may be omitted
if you don't want to save the output (e.g. when only calculating BPM rate with '-bpm' switch). Give "stdout" as filename to use standard
output pipe.
[options] Are one or more control options.
OPTIONS
Available control options are:
-tempo=n Change the sound tempo by n percents (n = -95.0 .. +5000.0 %)
-pitch=n Change the sound pitch by n semitones (n = -60.0 .. + 60.0 semitones)
-rate=n Change the sound playback rate by n percents (n = -95.0 .. +5000.0 %)
-bpm=n Detect the Beats-Per-Minute (BPM) rate of the sound and adjust the tempo to meet 'n' BPMs. When this switch is applied, the "
-tempo" switch is ignored. If "=n" is omitted, i.e. switch " -bpm" is used alone, then the BPM rate is estimated and displayed, but tempo
not adjusted according to the BPM value.
-quick Use quicker tempo change algorithm. Gains speed but loses sound quality.
-naa Don't use anti-alias filtering in sample rate transposing. Gains speed but loses sound quality.
-license Displays the program license text (LGPL)
NOTES
* To use standard input/output pipes for processing, give "stdin" and "stdout" as input/output filenames correspondingly. The standard
input/output pipes will still carry the audio data in .wav audio file format.
* The numerical switches allow both integer (e.g. " -tempo=123") and decimal (e.g. " -tempo=123.45") numbers.
* The " -naa" and/or " -quick" switches can be used to reduce CPU usage while compromising some sound quality
* The BPM detection algorithm works by detecting repeating bass or drum patterns at low frequencies of <250Hz. A lower-than-expected BPM
figure may be reported for music with uneven or complex bass patterns.
EXAMPLES
Example 1
The following command increases tempo of the sound file "originalfile.wav" by 12.5% and stores result to file "destinationfile.wav":
soundstretch originalfile.wav destinationfile.wav -tempo=12.5
Example 2
The following command decreases the sound pitch (key) of the sound file "orig.wav" by two semitones and stores the result to file
"dest.wav":
soundstretch orig.wav dest.wav -pitch= -2
Example 3
The following command processes the file "orig.wav" by decreasing the sound tempo by 25.3% and increasing the sound pitch (key) by 1.5
semitones. Resulting .wav audio data is directed to standard output pipe:
soundstretch orig.wav stdout -tempo= -25.3 -pitch=1.5
Example 4
The following command detects the BPM rate of the file "orig.wav" and adjusts the tempo to match 100 beats per minute. Result is stored to
file "dest.wav":
soundstretch orig.wav dest.wav -bpm=100
Example 5
The following command reads .wav sound data from standard input pipe and estimates the BPM rate:
soundstretch stdin -bpm
NOTES
Converted from the README.html that comes with SoundTouch.
soundstretch(1)