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. UNIX for Dummies Questions & Answers
Hi
I remember i have create a file "Dechistory" before a month. But i dont remember exact location.
I know i need to find out first that fiiles exact location for renaming it .......but i waant to that without going on that location.......how to do that ??? (1 Reply)
Discussion started by: tusharjoshi
1 Replies
4. 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
5. 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
6. 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
7. Red Hat
Hi All;
I have a to rename a user account example User1 to User2 keeping everything same.
Now I would be using
usermod -l User1 User2 .However User1 has some cron jobs and by using the conventional usermod iam unable to transfer those cron jobs to User2 i.e after renaming the user.
... (4 Replies)
Discussion started by: maverick_here
4 Replies
8. UNIX for Dummies Questions & Answers
Hi guys..
Please help me.. I am a newbie to Unix..
How to change the extension of all .txt files in my current directory and also subdirectories to .my extension all together??
Regards,
Mahesh.. (2 Replies)
Discussion started by: mraghunandanan
2 Replies
9. Shell Programming and Scripting
Hai masters,
Suppose i have so many files named xxxx.ksh.tar, yyyy.ksh.tar and so on.
My requirement : i want to rename all the files with extension ".ksh.tar" to ".tar" in my directory.
Could you please tell me the solution for this.. (5 Replies)
Discussion started by: ecearund
5 Replies
10. UNIX for Dummies Questions & Answers
Hi All,
I want to rename a file inside a script which has a date portion appended at the start of the file name.
The script i wrote works fine when the file comes on a day to day basis but sometimes it comes late too.
#!/usr/bin/ksh
cd /space/file/source
dt=$(date "date "+%m%d%Y")... (5 Replies)
Discussion started by: kumarsaravana_s
5 Replies