10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Greetings. I am working in a Linux environment and am trying to figure out a way to rename files in a directory by appending a unique strings that appears within a certain area in those files. I have gotten as far as identifying what that particular unique string is with a command like the... (10 Replies)
Discussion started by: HLee1981
2. 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
3. Shell Programming and Scripting
I have a file with filename as "partition-setup-and-ipl.vtcmd.76217657132.9721536798"
Now i need to move this file as "partition-setup-and-ipl.vtcmd.76217657132.9721536798_org"
i tried with
# ls | grep -E "partition-setup-and-ipl.vtcmd.+"... (2 Replies)
Discussion started by: Priya Amaresh
4. UNIX for Dummies Questions & Answers
Can we rename multiples files using find or awk utility?
Now I am doing it using for loop and getting the file name and in side the loop using the mv command.
Like ine need t rename all txt files to doc file. For example
a1.txt => a1.doc
a2.txt => a2.doc
a3.txt => a3.doc
myfile.txt... (2 Replies)
Discussion started by: siba.s.nayak
5. Shell Programming and Scripting
I have several hundred files I need to rename, and I'm would rather not hit F2 for each file individually to rename them.
Example of file:
What I need the file to be renamed as:
I don't know what type of command I can execute within a shell script that would... (7 Replies)
Discussion started by: jayell
6. Shell Programming and Scripting
I have a bunch of files txt1.csv--2008 thru to txt3.csv--2008.
If i wanted to rename these files all at the same time to txt*.csv-2008 what would be the best way to do it...
Just need to get rid of the extra - in each file name.. not all files are going to be called txt*.csv--2008. Just... (6 Replies)
Discussion started by: Jazmania
7. UNIX for Dummies Questions & Answers
Hi All my dear friends
I had multiple files in my directory with .pcv and .sqv extn
I want to rename all .pcv files with .pc extn and all .sqv files with .sql extn
Please help me out.:eek::mad::rolleyes:
-rwxr-xr-x 1... (2 Replies)
Discussion started by: dhiren_shah
8. UNIX for Dummies Questions & Answers
There are multiple files like
file3_11.....and so on.
How to rename them such tht the suffix _11 is removed and they become file1, file2, file3.
Any help is appreciated.
er_ashu (1 Reply)
Discussion started by: er_ashu
9. UNIX for Dummies Questions & Answers
I have a program that will export my data to a single file, but it assigns a file name that is overridden every time I run the program. I need to change the file name to have a sequential number in the filename.
How do I rename a file so that the filename contains the system date and time. I want... (5 Replies)
Discussion started by: wayneb
10. UNIX for Dummies Questions & Answers
I was trying to rename multiple files. Like in DOS, i decided to use wildcards and now i am missing some files. Any ideas on how to recover them? Or find out where the files went?
I had these 3 files
The command I ran was
mv *.log *.log.bak... (6 Replies)
Discussion started by: rmayur