Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Need help in writitng a script to rename file name and copy to other folder

Shell Programming and Scripting

Thread Tools Search this Thread Display Modes
Old Unix and Linux 01-30-2013
pavan.yadalla pavan.yadalla is offline
Registered User
Join Date: Jan 2013
Last Activity: 31 January 2013, 6:16 AM EST
Location: Hyderabad
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Wrench Need help in writitng a script to rename file name and copy to other folder

Hi All,

My requirement is as follows:

A file (say abc) will be having list of the .txt file names. I need to read this abc file line by line and rename the .txt file names inside it and move them to other folder/path.


Output (should be present in different path)

Please help me in writitng the script. Shell: KSH

Sponsored Links
Old Unix and Linux 01-30-2013
Scrutinizer's Unix or Linux Image
Scrutinizer Scrutinizer is offline Forum Staff  
Join Date: Nov 2008
Last Activity: 22 September 2017, 12:47 AM EDT
Location: Amsterdam
Posts: 11,534
Thanks: 500
Thanked 3,335 Times in 2,943 Posts
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Script to create folder, copy file, and send email on success minnino Shell Programming and Scripting 4 10-19-2012 01:24 PM
sed to rename files in a folder - please help with script Bloomy Shell Programming and Scripting 8 06-02-2011 03:24 AM
Bash script to rename all files within a folder... dranzer UNIX for Dummies Questions & Answers 2 12-05-2010 04:18 PM
Rename folder/directory after running sort script jl487 Shell Programming and Scripting 1 04-13-2010 11:37 PM
Copy files from folder and rename them zeker Shell Programming and Scripting 4 12-24-2009 04:49 AM

All times are GMT -4. The time now is 07:42 AM.