LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-08-2006, 10:45 PM   #1
mikepol
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Rep: Reputation: 0
Advanced file renaming/copying


Hi,
I am fairly new to linux and I was trying to find this information in different tutorials but wasn't able to come up with anything releval yet. I'm looking for a way to do some advanced renaming/copying of files using pattern matching. Something similar to sed program, only which works on file names instead of file data.

A second part of my question is, given a list of files in another file, how is it possible to run some particular program on each file in this list? Can this be done in just a single line on command prompt or is a script needed to do the job? Could anyone point me to some tutorial/article about this, or give an example?
Thanks a lot.

-Mike
 
Old 01-08-2006, 11:30 PM   #2
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
Hi, sed can handle text stream not only from a file but also input from a pipeline, so it can work on file names either, below are all excellent bash scripting guides, from easy to hard.

http://www.linuxcommand.org/

http://www.tldp.org/LDP/Bash-Beginners-Guide/html/

http://www.tldp.org/LDP/abs/html/
 
Old 01-09-2006, 02:45 AM   #3
mikepol
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Thank you. I found everything I need from these links
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File renaming amushtaq Linux - Software 2 01-13-2006 06:40 AM
Complex file renaming Imyrryr Linux - General 3 04-29-2005 09:27 AM
renaming a file?? U-Toast Linux - Newbie 2 08-29-2004 02:07 AM
Bulk File Renaming nevereverend Linux - Newbie 11 07-03-2004 06:28 PM
renaming or converting a text file to a dat file... tangaz Linux - Software 1 10-24-2003 07:57 AM


All times are GMT -5. The time now is 02:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration