Sponsored Content
Top Forums Shell Programming and Scripting sed to rename files in a folder - please help with script Post 302526781 by ciupinet on Wednesday 1st of June 2011 12:30:32 PM
Old 06-01-2011
I think that by running the script some of your files got replaced. For example, chp01_00001.wav is renamed to chp_bloomy_00001.wav, and chp02_00001.wav is renamed to chp_bloomy_00001.wav too.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

rename files in a folder

i have a folder that contains 100's of files: abc, bca, def, ghi.... i want to rename abc with 1, bca with 2, def with 3, ghi with 4 and so on. my way, i create a file.txt with contents: 1 2 3 4 i use while loop to rename my files. without using file.txt, i just want to rename abc with... (4 Replies)
Discussion started by: tjmannonline
4 Replies

2. Shell Programming and Scripting

rename all the files in a folder..

Hi Guys, I have 5000 files in a folder. all are .DAT files. I want to rename them as .TXT files. I tried the following command. mv *.DAT *. TXT But it is throwing an error. Can you please tell me what am i doing wrong. Thanks & Regards, Magesh. (11 Replies)
Discussion started by: mac4rfree
11 Replies

3. Shell Programming and Scripting

Copy files from folder and rename them

hello, I need to build a shell script that receives the folder to copy by parameter and copy all files except thumb.db to another folder and rename them like, file.jpg renamed to file_bb1.jpg. can someone help me Thanks (4 Replies)
Discussion started by: zeker
4 Replies

4. Shell Programming and Scripting

Rename folder/directory after running sort script

Hello, I'm trying to create a script that sorts documents by author (found in file name) and then create a directory for that author. For example, Input: John - Paper_1.txt John - Paper_2.txt Mark - Paper_1.txt Jill - Paper_1.txt Output: dir/John/Paper_1.txt dir/John/Paper_2.txt... (1 Reply)
Discussion started by: jl487
1 Replies

5. Linux

rename files in a folder with date&time stamp

Hi, I want to rename all the files (more than 100 files) in a fodler to another folder with date&time stamp. foe eg, file1.dat file2.dat file3.dat .. to be renamed as file1100629_16_30_15.txt (yy-mon-dd_hh_mi_ss) file1100629_16_30_16.txt .. so on (2 Replies)
Discussion started by: feroz
2 Replies

6. UNIX for Dummies Questions & Answers

Using Vim or Ex to rename all files in a folder

Is there a way to use Vim or Ex to rename all files in a folder? For example if i have a folder with Apples1.txt, Apples2.txt, Apples3.txt, could I rename all files so they are Oranges1.txt, Oranges2.txt, Oranges3.txt ? I know with :bufdo %s/apples/oranges/g|update you can do this for inside... (5 Replies)
Discussion started by: VimNewUser
5 Replies

7. UNIX for Dummies Questions & Answers

Bash script to rename all files within a folder...

Hi. I don't have any experience with making scripts in bash. I need a simple script to rename all files in a folder to the format file1.avi, file2.avi, file3.avi, and so on..... Please note that the original files have different filenames and different extensions. But they all need to be... (2 Replies)
Discussion started by: dranzer
2 Replies

8. UNIX for Dummies Questions & Answers

looping through files, doing something, and rename in new folder

Hi, I'm really new at this but have several hundred files that i need to do something with and save with a new name. The files are 26 columns wide. I want to select some for renaming. I've figured out what to do to each file ("file-1.CSV"| grep -v "=" | cut -f 1-4,9,14,15,18,19,20,21,22,24,26... (2 Replies)
Discussion started by: bob101
2 Replies

9. Shell Programming and Scripting

Need help in writitng a script to rename file name and copy to other folder

Hi All, My requirement is as follows: A file (say abc) will be having list of the .txt file names. I need to read this abc file line by line and rename the .txt file names inside it and move them to other folder/path. Eg: abc ------- file1.txt file2.txt file3.txt Output (should... (1 Reply)
Discussion started by: pavan.yadalla
1 Replies

10. Shell Programming and Scripting

How to rename all files and folder containing underscore?

I want to rename all files and folder containing underscore in name and replace underscore with hyphen. Currently I am using following code, rename '_' '-' */*/* It was working but now it is showing me "Argument list too long" Please help! (2 Replies)
Discussion started by: opticalpigion
2 Replies
qwavfade(1)							 quelcom man pages						       qwavfade(1)

NAME
qwavfade - fade in/out wav files SYNOPSIS
qwavfade [option]... file... DESCRIPTION
qwavfade modifies a wav file applying on it a fade in or a fade out or both. a fade consists in modifying progressively the level of the wav as if you were slowly increasing or decreasing the volume. a fade in con- sists in increasing the volume starting from a low level at the beginning of the wav. a fade out consists in decreasing the volume to a low level at the end of the wav. OPTIONS
-d <duration>[<format>], --duration=<duration>[<format>] duration is a positive integer that specifies the duration of the fade. the value is treated as a sample number unless a format specifier is used. see the FORMATS section below for information. the default value is five seconds. this option overrides the --length option explained below. -h, --help show a brief help and exit. -i, --in just fade in. don't fade out. by default, fade in and fade out. -l <time point>, --length=<time point> time point specifies the length(=duration) of the fade. see the TIME POINTS section below for information. this option is quite sim- ilar to the --duration option above. its easier to use though not as powerful than the previous one. the default value is five sec- onds. this option overrides the --duration option explained above. -o, --out just fade out. don't fade in. by default, fade in and fade out. -t, --test this option can be used to create and fade a tests files instead of modifying to original file. a test file will be created for each type of selected fade (in or out). the name of the test file will be fadein.<file> or fadeout.<file. the duration of the test files is the fade duration plus two seconds. -v, --verbose show more detailed info. -V, --version show version and exit. TIME POINTS
the time points is a easier way to specify the length (or duration) of a fade with a millisecond resolution. here's its formal form: [h:[m:]]s[.ms] where h value is a positive integer meaning hours. m value is a positive integer meaning minutes. s value is a positive integer meaning seconds. ms value is a positive integer meaning milliseconds. only the seconds specifier is required. here are a couple of examples: 1:23:45.67 2:0.001 FORMATS
the --duration option can have also an optional modifier. if this modifier is not used, then the value provided with the corresponding cut option will be interpreted as a number of samples. since most of the times will be difficult to specify a duration in terms of samples, the following modifiers are provided: j value is interpreted as milliseconds. m value is interpreted as minutes. s value is interpreted as seconds. b value is interpreted as bytes. k value is interpreted as kbytes (1024 bytes). M value is interpreted as megabytes (1024 kbytes). in either case, the values specified will be rounded to get an integer number of samples. EXAMPLE
suppose you want to fade in and out the fantastic song live.in.concert.wav using a fade duration of 5 seconds: first we are going to test: qwavfade -t -d 7s live.in.concert.wav hear the test fades: my-favourite-wav-player fadein.live.in.concert.wav my-favourite-wav-player fadeout.live.in.concert.wav if you want to try with another duration, jump to the first step and change the duration argument. and if you're happy with the tests: qwavfade -d 5s live.in.concert.wav NOTES
qwavfade doesn't allow both types of fades (in and out) to overlap. if you want to fade in and out a wav file, and the two regions to fade overlap, then probably you made a mistake. in any case, you can do it fading separately. BUGS
tests has been done only with 44100 Hz 16 bit stereo files, though it may work with mono/stereo 8/16 bits files. AUTHOR
dmanye@etse.urv.es http://www.etse.urv.es/~dmanye/quelcom/quelcom.html SEE ALSO
qwavinfo(1), qwavjoin(1), qwavcut(1), qwavsilence(1), qwavheaderdump(1) qmp3info(1), qmp3join(1), qmp3cut(1), qmp3check(1), qmp3report(1) quelcom 0.4.0 february 2001 qwavfade(1)
All times are GMT -4. The time now is 07:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy