how to say "copy everything except XXX"?

how to say "copy everything except XXX"?

Post by kalasend at YAHOO dot CO » Wed, 13 Jun 2001 08:59:34



as subject, thanks!
 
 
 

how to say "copy everything except XXX"?

Post by Bill Vermilli » Wed, 13 Jun 2001 14:37:54




Quote:>as subject, thanks!

Does   cp [!XXX] <dest-dir> do it for you?

--


 
 
 

how to say "copy everything except XXX"?

Post by Bill Vermilli » Wed, 13 Jun 2001 21:51:26





>>as subject, thanks!
>Does   cp [!XXX] <dest-dir> do it for you?

Second try.   cp [!XXX]* <dest-dir>

I had verified that but left out the wild card when I typed it
in.  Sorry about that.

--

 
 
 

how to say "copy everything except XXX"?

Post by Olaf Wagne » Wed, 13 Jun 2001 17:33:22


Either use `find' (man find), or -- for simple cases --
something like

  cp `ls -1 * | egrep -v 'exclpat1|exclpat2|...'` destdir

It is always a good idea to put an echo before any such line
for the first run :-)

--
/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


|| D-12157 Berlin        | phone: +49 30  85 60 26 70            |
|| Germany / Deutschland | fax:   +49 30  85 58 01 88            |
\/////////////////////////////////////////////////////////////////

 
 
 

1. These "ICMP redirect from xxx.xxx.xxx.xxx" errors

I've seen a few people ask - but haven't seen a response.

Can anyone tell us what these are caused by? I though they looked like
source-routed packets, but our local cisco disables source-routes and our
Linux boxes are compiled to ignore source-routes - so I can't figure out
what they are caused by.

We get tonnes of them on a mail server here - the addresses are all mail
servers - a lot of them from rather large outfits...

--
Cheers,
+++++++++++++++++++++++++++++++++++++++++++++++
Jason Haar, Unix/Internet Manager
OiT, Oxford. Phone:  +44 1865 785051

2. top: failed /proc/stat read

3. Installation freezing at "Add default route xxx.xxx.xxx.xxx" with NE2000 card

4. Netscape, Gnome and Companion

5. Problem: "NFS Server xxx.xxx.xxx.xxx not responding, still trying"

6. The First Shell Prompt ......

7. I say "Hello" Linux says "Goodbye" ... aaarghhh

8. Help with uugetty

9. Annoying Message: "Wrote xxx/xxx" buffers"

10. "difference between "xxx.h" and <xxx.h> ????"

11. GETSERVBYNAME()????????????????????"""""""""""""

12. sh says: test "$1" = "" when $1="-b"

13. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""