10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In sftp script to get files, I have to rename all the files which I am picking. Rename command does not work here. Is there any way to do this?
I am using #!/bin/ksh
For eg: sftp user@host <<EOF
rename *.txt *.txt.done
... (7 Replies)
Discussion started by: jhilmil
2. Shell Programming and Scripting
I have a folder with around a 100 files. Some of these files have an extension of .DAT.csv and the others are simply .DAT
I need to rename all those files ending in .DAT.csv to .DAT. I tried out the following script:
for fname... (3 Replies)
Discussion started by: S. BASU
3. Shell Programming and Scripting
I have a list of files in a folder with the same name ending (over 1000 files)
I want to change jpy to hhk
So the output will be:
jon3.hhk.jpeg... (3 Replies)
Discussion started by: kylle345
4. UNIX for Dummies Questions & Answers
I just used wget to obtain a bunch of html documents. Now they are named index.html, index.html.1, index.html.2, etc. I'd simply like to move the 1, 2, 3 etc. to the left before the .html, so the new names would be: index1.html, index2.html etc. I know this can be done with a simple script, but... (2 Replies)
Discussion started by: crl21
I have some files which I would like to rename. These files are generated every 15 min and i would like to issue script that originally rename this file with one prefix like "BBB91."
original file is :
desired one would be:
... (2 Replies)
Discussion started by: arihali
6. Shell Programming and Scripting
I have a folder that contains hundreds of file with a names
I need rename each of this file by adding "core_" in the begiining of each file such as
core_21.msa (4 Replies)
Discussion started by: Lucky Ali
7. UNIX for Advanced & Expert Users
How can I rename files with .c to .cpp in my current directory and if any directory present in current directory system should descend in to that and checks ( find )....
tell me how to achieve this using find command and other if any?
thanks. (7 Replies)
Discussion started by: shahnazurs
8. UNIX for Dummies Questions & Answers
I just can't figure this one out.
I have a lot of files name (for example) ABC1234.5678.ext
I need to rename these files U0105678PQRS
So I'm removing everything before the first "."
I'm keeping "5678" in the file name
Adding "U010" to the front of "5678"
Dropping the ".ext" extension
... (5 Replies)
Discussion started by: bbbngowc
9. UNIX for Dummies Questions & Answers
I need to rename files by adding an embedded 0
aaa_bbb_1234 needs to become aaa_bbb_01234
The aaa and 1234 will change but the bbb_ can be my anchor.
TIA (9 Replies)
Discussion started by: ohagar
10. Shell Programming and Scripting
i wanna rename my files which names are written in movies.txt
films.txt = amovie
and i wanna find this files and rename the files to 1_amovie
... (12 Replies)
Discussion started by: redbeard_06