Not quite clear on the problem but if you mean that each of the files has a
different name but that they all contain the word "notes" in their filename
then try
cp `find Paul -name '*notes*'` target_dir/
should do it, as long as there are less than about 16000 of them and none of
the directories or file have spaces in their names. More than 16000 will
give "argument list too long" (at least it does in my shell) and names with
spaces will get buggered up altogether because "Paul/docs dir/notes" will
look like 2 files: "Paul/docs" and "dir/notes",
Fergal
On Fri, Apr 06, 2001 at 02:38:31PM +0100, Paul McCourt wrote:
>> 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.
>> thanks
>> Paul
>>> **********************************************************************
> Privileged/Confidential Information may be contained in this
> message. If you are not the addressee indicated in this message
> (or responsible for delivery of the message to such person), you
> may not copy or deliver this message to anyone. In such case,
> you should destroy this message and kindly notify the sender by
> reply email. Please advise immediately if you or your employer do
> not consent to Internet email for messages of this kind. Opinions,
> conclusions and other information in this message that do not relate
> to the official business of Marrakech and shall be understood as
> neither given nor endorsed by it.
> **********************************************************************
>> --
> Irish Linux Users' Group: ilug at linux.ie>http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie
--
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!