10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
Am trying to move a file from one name to another
When I do "ls" to check for the moved filename
I can see the file but when I try the same with a script am unable..
I think am doing some pretty silly error.. please help..
toMove=`ls | grep -E "partition.+"`
mv $toMove partition._org... (7 Replies)
Discussion started by: Priya Amaresh
7 Replies
2. UNIX for Dummies Questions & Answers
Hi there,
I have 350 files in this directory: /home/adams/29 that was mistakenly renamed in this format:
TTFILE_BIT_638478.txt.dat
I want to take out the trailing .dat so that it ends in .txt: TTFILE_BIT_638478.txt
I need help please.
Thank you. (6 Replies)
Discussion started by: Creems
6 Replies
3. Shell Programming and Scripting
Hello,
I would like to split a file but I dont what the subfiles to be named the way they are:
ex:
default name: xaa xab xac xad xae
desired name: b01 b02 b03 b04 b05
I know I can rename them afterwards however I have a varialbe split lenghth, in other words I am not sure how... (2 Replies)
Discussion started by: smarones
2 Replies
4. UNIX for Dummies Questions & Answers
I have a file named as Pro_PatAct_MMDDYYYY.csv. I need to renmae it to this Pro_PatAct.csv without the date timestamp. Can someone help me to achieve this using a regular expn. (3 Replies)
Discussion started by: imran_affu
3 Replies
5. Shell Programming and Scripting
Hello,
I have an outstanding issue..Iam on linux and using a putty to connect to my server and then fire our unix shell script.
At location /usr/sam a file called "er 1 32.txt" out boss transfer via application.
From my end on terminal when i want to transfer this file to some other location... (2 Replies)
Discussion started by: j_panky
2 Replies
6. Shell Programming and Scripting
I have a directory of files that I need to rename by splitting the first and second halves of the filenames using the delimiter "-O" and then renaming with the second half first, followed by two underscores and then the first half. For example, natfinal1995annvol1_14.pdf -O filenum-20639 will be... (2 Replies)
Discussion started by: swimulator
2 Replies
7. Shell Programming and Scripting
I have to rename a large number of files so that the name of each file corresponds to a code number that is given side by side in a list (textfile).
The list contains in column A the filename of the actual files to be renamed and in column B the name (a client code, 9 digits) that has to be... (7 Replies)
Discussion started by: netfreighter
7 Replies
8. Shell Programming and Scripting
have this shl that will FTP a file from the a directory in windows to UNIX, It get the name of the file stored in this variable $UpLoadFileName then put in the local directory LocalDir="${MPATH}/xxxxx/dat_files" that part seems to be working, but then I need to take that file and rename, I am using... (3 Replies)
Discussion started by: rechever
3 Replies
9. Shell Programming and Scripting
I am a complete Unix newbie and I need some help! (Please...)
I need to rename a file from the following format:
Test_Test_EAR_1234.ear
To the following:
Test_Test_EAR.ear
In other words, I need to remove everything after & including the final underscore up to the "." What is the best... (6 Replies)
Discussion started by: VeloLisa
6 Replies
10. UNIX for Dummies Questions & Answers
I have gone through all the threads in the forum and tested out different things. I am trying to split a 3GB file into multiple files. Some files are even larger than this.
For example:
split -l 3000000 filename.txt
This is very slow and it splits the file with 3 million records in each... (10 Replies)
Discussion started by: madhunk
10 Replies