Unix/Linux Go Back    

Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here.

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

Shell Programming and Scripting

Closed Linux or Unix Question    
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: 27 November 2015, 12:51 AM EST
Location: Amsterdam
Posts: 10,529
Thanks: 364
Thanked 2,812 Times in 2,513 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
Closed Linux or Unix Question

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 02:24 PM
sed to rename files in a folder - please help with script Bloomy Shell Programming and Scripting 8 06-02-2011 04:24 AM
Bash script to rename all files within a folder... dranzer UNIX for Dummies Questions & Answers 2 12-05-2010 05:18 PM
Rename folder/directory after running sort script jl487 Shell Programming and Scripting 1 04-14-2010 12:37 AM
Copy files from folder and rename them zeker Shell Programming and Scripting 4 12-24-2009 05:49 AM

All times are GMT -4. The time now is 04:14 AM.