10 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 a bunch of files which are named something like:
Company Name~1234~X1234~X1-123.pdf
I need to get them renamed something like:
Company Name~1234(X1234)X1-123.pdf
Once I have the X1234 inside () I have a piece of software which can use the X1234 bit. I will be receiving... (7 Replies)
Discussion started by: jcborland
7 Replies
3. Shell Programming and Scripting
Hi,
I have a directory with 100 subdirectories and each of these subdirectories has 1 file. Now I have to rename all these.
The structure is "files directory has 100 SRR191639-SRR191718 subfolders and in each there is a file with the same name a subdirectory followed by .sra extension... (5 Replies)
Discussion started by: Diya123
5 Replies
4. Shell Programming and Scripting
"Help Me" Need script for transferring bulk files from one format to text format in a unix server.
Please suggest (2 Replies)
Discussion started by: Kranthi Kumar
2 Replies
5. Shell Programming and Scripting
Dears,
I need your help!
I got a problem and found some workaround solution but I donno how to realize it.
I have a number of files (about 300 each day) and I need them to be renamed. All these files has fixed number of letters and name looks like this one:... (7 Replies)
Discussion started by: nypreH
7 Replies
6. Shell Programming and Scripting
I wanna back up the original version of files in a directory by appending .ORIG to them. I'm guessing I'd need CP and AWK in some form or fashion. Can someone give me a template? Thanks (3 Replies)
Discussion started by: stevenswj
3 Replies
7. Shell Programming and Scripting
hi i have a folder full of files. some of the names are quite off because the dimensions were the same and i had to put a 'b' after the initial number so that it didnt overwrite. what i want is a script in unix to overwrite the filwe name leaving some of the title intact, e.g. below are some... (3 Replies)
Discussion started by: shabs1985
3 Replies
8. UNIX for Dummies Questions & Answers
Hi Gurus,
I have some files(all ending with .out as extension).
Ex:
aa1.out
aa2.out
aa3.out
I would like to append each file with the current date to the end of the file so that they should become aa1_20090504.out.
So I am using rename as follows:
for i in path/aa* ; do mv $i... (5 Replies)
Discussion started by: asmfloyd
5 Replies
9. Shell Programming and Scripting
Hello,
I am trying to rename bulk files however i dont think the rename/mv command is giong to help me here. here is a quick snapshot of the files I need to rename:
75008040 -rw-r----- 1 root root 8716 May 8 05:00 10.9.144.2
75008041 -rw-r----- 1 root root 11700 May 8 05:00 10.9.160.2... (10 Replies)
Discussion started by: jallan
10 Replies
10. Shell Programming and Scripting
I'm doing a short batch script to compile po files producing output binary mo files.
The compilation command is:
msgfmt -o file.mo file.po
so in order to compile I am appending .mo to the varible in a loop.
It goes something like this:
for i in `find . -name "*.po"`
do
echo... (2 Replies)
Discussion started by: Breen
2 Replies