9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
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
cd /path
get *.txt
rename *.txt *.txt.done
... (7 Replies)
Discussion started by: jhilmil
7 Replies
2. Shell Programming and Scripting
Hi
i have to achieve the following
i have files as xyz001.csv, xyz002.csv.......xyz0025.csv in a folder, i need to keep xyz001.csv as it is
but want to remove the extra zero on filename from 10 say
xyz0010 should be renamed to xyz010
xyz0025 should be renamed as xyz025
Note xyz... (8 Replies)
Discussion started by: mad_man12
8 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
I'm working in a specific directory and I have file names which I'd like to rename but in a way in which I can specify the new filenames as @ARGV or user input at prompt.
Can someone shed some light on this?
Cheers :) (7 Replies)
Discussion started by: pawannoel
7 Replies
4. Shell Programming and Scripting
Hi All
I have a folder that contains hundreds of file with a names
3.msa
4.msa
21.msa
6.msa
345.msa
456.msa
98.msa
...
...
...
I need rename each of this file by adding "core_" in the begiining of each file such as
core_3.msa
core_4.msa
core_21.msa (4 Replies)
Discussion started by: Lucky Ali
4 Replies
5. 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
5 Replies
6. Shell Programming and Scripting
hi,
I have the following files as below.
reg_test_123232
reg_test_125654
reg_test_473843
How do I rename reg_test_123232 to abc_123232 and the rest of file by just keeping the numeric field ?
Please advise :) (3 Replies)
Discussion started by: cedrichiu
3 Replies
7. Shell Programming and Scripting
I need to take a series of image files, all numbered consecuativly, that were recently dumped in a directory and rename them to pieces of the directories path. Assume all directories are structured as this one so that I may use this script to easly sort and rename files.
pt.1
path :... (3 Replies)
Discussion started by: TiredOrangeCat
3 Replies
8. Shell Programming and Scripting
Renaming Files more than 1000 in Diffrent Directories in system..
help me in this issue to resolve.... (5 Replies)
Discussion started by: sunsap
5 Replies
9. Shell Programming and Scripting
Hello.
Need to rename 1000's of files with names like 991%20(2003)%20-%20991%20Ryall%20Prison%20Population%20and%20Recorded%20Crime.doc
All I need is the beginning numbers , in this case 991 .
Tried: for file in * ; do mv $file `echo $file | sed '/^{p;q}'` ; done
but no luck.
Thank... (8 Replies)
Discussion started by: whatsup
8 Replies