sed to rename files in a folder - please help with script
Hello,
I am new to shell scripting and stuck on renaming files in a folder. The files have the format
but I want them to have the following names:
I wrote a loop to delete the numbering from chp and insert "bloomy":
But the loop doesn't work and I get the following error message:
I also don't know how to remove the numbering and replace it with consecutive numbering at the end of the file names.
Can someone help please?
Cheers,
Bloomy
Last edited by Franklin52; 06-02-2011 at 10:29 AM..
Reason: Please use code tags
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)
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT DEBIAN
sonic
SONIC(1) General Commands Manual SONIC(1)NAME
sonic - Speech speed manipulator
SYNOPSIS
sonic [OPTION]... inFile outFile
DESCRIPTION
Sonic is used to make wav files of speech faster or slower. The primary advance in sonic is the ability to speed speech up by much more
than 2X, with minimal distortion. However, sonic can be used for both speeding up and slowing down speech files. Additionally, sonic can
change the pitch and volume.
OPTIONS -c Modify pitch by emulating vocal chords vibrating faster or slower. This causes more distortion than the default pitch scaling, but
sounds more like the same person trying to talk higher or lower. The default pitch changes makes the voice sound like a larger or
smaller person, but introduces little distortion.
-p pitch
Set pitch scaling factor. 1.3 means 30%% higher.
-q Disable all speed-up heuristics, possibly improving the quality slightly. This is mainly used for debugging the speed-up heuris-
tics.
-r rate
Adjust the speed of playback. This sales both the pitch and speed equally.
-s speed
Set speed up factor. 1.0 means no change, 2.0 means 2X faster.
-v scaleFactor
Scale volume by scaleFactor. 1.5 increases by 50%. Clips if the maximum range is exceeded.
EXAMPLES
sonic -s 3.2 book.wav book_fast.wav
The above command would increase the speed of an audio book called book.wav by a factor of 3.2, and write the result in book_fast.wav.
sonic -s 0.5 -v 1.5 spanish.wav spanish_slow.wav
This would slow down the file spanish.wav by a factor of 2, make the volume 50% louder, and write the result to spanish_slow.wav.
sonic -p 2.0 low.wav high.wav
This would make a low voice sound very high pitched.
AUTHOR
Bill Cox waywardgeek@gmail.com Sonic Version 0.1, Copyright 2010, Bill Cox, GPL license
SONIC(1)