LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] A new copying files problem

[ILUG] A new copying files problem

John P. Looney john at antefacto.com
Fri Apr 6 14:44:31 IST 2001


On Fri, Apr 06, 2001 at 02:38:31PM +0100, Paul McCourt mentioned:
> 
> Seeing as you guys are on this topic, what about the following problem.
> 
> I want to copy a specfic file which is located in every directory in a dir
> structure.  See below, the file has notes in the filename and theres a
> different one located in each directory, I want something to go into each
> dir, and copy the file to another target directory along with the others
> 
> Paul
>   |
>   - home
>   |
>   - office
>   |
>   - work
> 
> 
> Confused? I'm sorry I couldn't make it any more murky.

 Something like;

    for i in Paul/* ; do
          cp $i/filename ${somewhere}/${i}/filename
    done

 ?

Kate

-- 
 When I say 'free', I mean 'free': free from bond, of chain or command: 
to go where you will, even to Mordor, Saruman, if you desire. " 
    -- Gandalf, paraphrasing the choice between Free and Non-free software




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell