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 trying to update an older program on a small cluster. It uses individual files to send jobs to each node. However the newer database comes as one large file, containing over 10,000 records. I therefore need to split this file. It looks like this:
ACC ... (2 Replies)
Discussion started by: fozrun
3. Shell Programming and Scripting
Hey, I'm kinda new to the shell scripting and I don't wanna mess things up yet :)
Looking for a solution to the following:
I need to move all the files like "filename.failed.dateandtime" to another directory also renaming them "filename.ready". I can't figure how to do this with multiple files... (4 Replies)
Discussion started by: sg3
4. UNIX for Dummies Questions & Answers
Very silly question. I need to rename all my files located in one particular folder. The names are Results1.dis, Results2.dis, Results3.dis, etc. I need to change the names to Results001.dis, Results002.dis, Results003 so on and so forth. Now, Files with double digits such as Results17.dis... (3 Replies)
Discussion started by: Xterra
5. 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
6. UNIX for Advanced & Expert Users
Please can someone help.
We are being sent a directiory full of images.
The names of these images can vary in length and have spaces in them.
nn 999999 nnnnn nnnn nnnn nn nnn nnn nn nnnn.pdf
what we want to do is rename all the images. Take the first two fields nn 999999 and... (23 Replies)
Discussion started by: Dolph
Hello everyone. Need some help copying a filesystem. The situation is this: I have an oracle DB mounted on /u01 and need to copy it to /u02. /u01 is 500 Gb and /u02 is 300 Gb. The size used on /u01 is 187 Gb. This is running on solaris 9 and both filesystems are UFS.
I have tried to do it using:... (14 Replies)
Discussion started by: dragonov7
8. Shell Programming and Scripting
I have 2 types of files in the following format:
>1234 (7 Replies)
Discussion started by: ad23
9. 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
10. UNIX for Dummies Questions & Answers
Anyone out there know how, in a one line UNIX Command, I could rename(mv) a file that contains variable string as part of its name. The variable string is the process instance number.
For example, I'd like to be able to rename XX_XXXXX_nnnnn.pdf (where nnnnn is a number and its value depends on... (4 Replies)
Discussion started by: mc_cool_e