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 am looking for a command line that will rename name files :
The great idea could be to get the date stamp 20130323
and change any part of it, instead of just change the... (4 Replies)
Discussion started by: Aswex
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. 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
5. Shell Programming and Scripting
using a utility image file was named starting with blank space and a blank space in between. I want to rename the files.
file names are in the format " sb 12.tif"," sb 13.tif"," sb 14.tif" the files are in thousands. i want to rename as 12.tif, 13.tif, 14.tif....
thanks. (3 Replies)
Discussion started by: ahkverma
6. UNIX for Dummies Questions & Answers
I have a list of files named ab_*.csv
I would like to remane them all by removing the ab_ and have *.csv
I did the following but I am surely missing something.
/* wrong script */
for i in `ls -1 ab_*`; do mv ab_$i $i; done
Thanks in advance. (1 Reply)
Discussion started by: jxh461
7. UNIX for Dummies Questions & Answers
I am not familiar with UNIX and I have this problem:
I need to move files from a UNIX machine to a PC. UNIX file names contain ":" as special character which is not recognized in a PC.
How can I change ":" for "_" in the name of a bunch of files in UNIX?
Thanks for your help. (7 Replies)
Discussion started by: Tygoon
8. UNIX for Dummies Questions & Answers
directory name = /usr/tom/1997
sub directory - /usr/tom/1997/jan
a) I want to just rename the all files ending with '.SQL' and also its contents in the 1997 directory(excluding subdirectories eg... (3 Replies)
Discussion started by: systemsb
9. UNIX for Dummies Questions & Answers
Today I got a small problem while handling zipped files in PROD support.
There are files in this format and I had to grep them reading some contents
where A,B,C and D stand for variables (like FIRST.NAME.gz.MIDDLE.LAST).
I know that these files are zipped files and If I... (1 Reply)
Discussion started by: adurga
10. UNIX for Dummies Questions & Answers
i have a set of *.lst files. now i want to change the names from "lst" to "dat". how to do it?
-rw-r--r-- 1 rram group 22 Sep 21 13:10 a.lst
-rw-r--r-- 1 rram group 22 Sep 21 13:09 b.lst
-rw-r--r-- 1 rram group 22 Sep 21 13:10 c.lst... (4 Replies)
Discussion started by: raguramtgr