Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: 0
Advanced file renaming/copying

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.

Old 01-08-2006, 10:30 PM   #2
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.
Old 01-09-2006, 01:45 AM   #3
LQ Newbie
Registered: Jan 2006
Posts: 8

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


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 05:40 AM
Complex file renaming Imyrryr Linux - General 3 04-29-2005 08:27 AM
renaming a file?? U-Toast Linux - Newbie 2 08-29-2004 01:07 AM
Bulk File Renaming nevereverend Linux - Newbie 11 07-03-2004 05:28 PM
renaming or converting a text file to a dat file... tangaz Linux - Software 1 10-24-2003 06:57 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:12 AM.

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