10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys,
I have written a code to move my file from one directory to another directory, the file is in .csv format and i need to append a current date to the file. the prolem is date is getting appended after the file extension..
here is my code :
cd /data/home/abc/xyz
now=$(date... (7 Replies)
Discussion started by: azherkn3
7 Replies
2. 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
3. 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
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 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
7. 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
8. Shell Programming and Scripting
I have an extraordinary problem with a csh script.....(feel free to berate the use of this but I'm modifying an existing bunch of them)
Anyway, I have a master csh script which in turn calls a second csh script. This second csh script is below. Within this second script are two compiled C++... (1 Reply)
Discussion started by: pollsizer
1 Replies
9. UNIX for Dummies Questions & Answers
Hi
I have always used ksh in the past, but now am using csh. To zero a file using ksh, you simply > filename. What is the command to do the same using csh?
Thanks in advance. (3 Replies)
Discussion started by: jodie
3 Replies
10. Shell Programming and Scripting
I have an audit log that is produced each day from a production printer. It names the file using todays date, but it removes the leading zero's. For example: todays date 060104 names the file 6104.txt.
I ftp this file onto a Sun box and pull stats off of it. To keep some consistency to what I am... (2 Replies)
Discussion started by: dbrundrett
2 Replies