Re: [expert] OT - for shell mongers: how _not_ to list a file

2003-08-28 Thread Matthew O. Persico
On Wed, 27 Aug 2003 12:45:45 +0200, Udo Rader wrote: Am Wed, 27 Aug 2003 01:10:59 + schrieb Matthew O. Persico: On Sun, 24 Aug 2003 00:29:33 +0200, jipe wrote: one easy way ... GLOBIGNORE=no_not_this_one then any glob like * will ignore this file bye jipe YIKES! Why use estoeric, shell

Re: [expert] OT - for shell mongers: how _not_ to list a file

2003-08-28 Thread Udo Rader
Am Thu, 28 Aug 2003 03:01:18 + schrieb Matthew O. Persico: On Wed, 27 Aug 2003 12:45:45 +0200, Udo Rader wrote: If you ALWAYS want to ignore the file. Can GLOBIGNORE take a regexp or a list of patterns to ignore? excerpt from the bash manpage: --CUT-- GLOBIGNORE

Re: [expert] OT - for shell mongers: how _not_ to list a file

2003-08-27 Thread Matthew O. Persico
On Sun, 24 Aug 2003 00:29:33 +0200, jipe wrote: one easy way ... GLOBIGNORE=no_not_this_one then any glob like * will ignore this file bye jipe YIKES! Why use estoeric, shell specific stuff when the proper application of STANDARD (cross-shell) command will do: cd TheDirectory cp `ls -c1

Re: [expert] OT - for shell mongers: how _not_ to list a file

2003-08-27 Thread Matthew O. Persico
On Sun, 24 Aug 2003 00:29:33 +0200, jipe wrote: one easy way ... GLOBIGNORE=no_not_this_one then any glob like * will ignore this file Ok, lets see if I can type a coherent sentence WITHOUT hitting the send key stroke (apparently CTRL-E, which is end-of-line in xemacs..) cd TheDir cp `ls -c1

Re: [expert] OT - for shell mongers: how _not_ to list a file

2003-08-27 Thread Udo Rader
Am Wed, 27 Aug 2003 01:10:59 + schrieb Matthew O. Persico: On Sun, 24 Aug 2003 00:29:33 +0200, jipe wrote: one easy way ... GLOBIGNORE=no_not_this_one then any glob like * will ignore this file bye jipe YIKES! Why use estoeric, shell specific stuff when the proper application of

Re: [expert] OT - for shell mongers: how _not_ to list a file

2003-08-24 Thread John McQuillen
On Sat, 2003-08-23 at 10:32, Udo Rader wrote: hi, I have a directory that contains several hundred files and I want to copy them all except _one_ file. This sounds so easy yet still I am stuck or blind or stupid. Is there no not operator in bash? If it were, some construct like the

Re: [expert] OT - for shell mongers: how _not_ to list a file

2003-08-24 Thread Ron Stodden
Use rsync. Udo Rader wrote: hi, I have a directory that contains several hundred files and I want to copy them all except _one_ file. This sounds so easy yet still I am stuck or blind or stupid. Is there no not operator in bash? If it were, some construct like the thing below could then list

Re: [expert] OT - for shell mongers: how _not_ to list a file

2003-08-24 Thread Udo Rader
Am Sat, 23 Aug 2003 22:49:32 + schrieb Ron Stodden: Use rsync. *lol*, use it for rsync, use it for copy, use it for making coffee, use it for everything ;-) sounds like a bit of overhead to me :-) udo Udo Rader wrote: hi, I have a directory that contains several hundred files and I

Re: [expert] OT - for shell mongers: how _not_ to list a file

2003-08-24 Thread jipe
On Sat, 23 Aug 2003 02:32:35 +0200 Udo Rader [EMAIL PROTECTED] wrote: hi, I have a directory that contains several hundred files and I want to copy them all except _one_ file. This sounds so easy yet still I am stuck or blind or stupid. Is there no not operator in bash? If it were,

Re: [expert] OT - for shell mongers: how _not_ to list a file

2003-08-24 Thread Ron Stodden
Udo Rader wrote: Am Sat, 23 Aug 2003 22:49:32 + schrieb Ron Stodden: Use rsync. *lol*, use it for rsync, use it for copy, use it for making coffee, use it for everything ;-) sounds like a bit of overhead to me :-) udo No, in fact it is usually faster and less overhead than any

Re: [expert] OT - for shell mongers: how _not_ to list a file

2003-08-24 Thread Udo Rader
Am Sat, 23 Aug 2003 22:59:07 + schrieb John McQuillen: On Sat, 2003-08-23 at 10:32, Udo Rader wrote: If it were, some construct like the thing below could then list all files in /opt/too_many_files except no_not_this_one: % ls -l /opt/too_many_files/*{!no_not_this_one} You were very

Re: [expert] OT - for shell mongers: how _not_ to list a file

2003-08-24 Thread Udo Rader
Am Sat, 23 Aug 2003 22:29:33 + schrieb jipe: one easy way ... GLOBIGNORE=no_not_this_one then any glob like * will ignore this file bye jipe wow, jipe!! that is _exactly_ what I was looking for!!! thank you very much! udo Want to buy your Pack or Services from MandrakeSoft? Go

Re: [expert] OT - for shell mongers: how _not_ to list a file

2003-08-24 Thread AAW
On Friday 22 August 2003 07:32 pm, Udo Rader wrote: hi, I have a directory that contains several hundred files and I want to copy them all except _one_ file. This sounds so easy yet still I am stuck or blind or stupid. Is there no not operator in bash? If it were, some construct like the

Re: [expert] OT - for shell mongers: how _not_ to list a file

2003-08-23 Thread David Guntner
Udo Rader grabbed a keyboard and wrote: If it were, some construct like the thing below could then list all files in /opt/too_many_files except no_not_this_one: % ls -l /opt/too_many_files/*{!no_not_this_one} Yes, I know this doesn't work, but is there any other efficient way to do this in

Re: [expert] OT - for shell mongers: how _not_ to list a file

2003-08-23 Thread Steffen Barszus
Am Samstag, 23. August 2003 04:21 schrieb David Guntner: Udo Rader grabbed a keyboard and wrote: If it were, some construct like the thing below could then list all files in /opt/too_many_files except no_not_this_one: % ls -l /opt/too_many_files/*{!no_not_this_one} Yes, I know this

Re: [expert] OT - for shell mongers: how _not_ to list a file

2003-08-23 Thread Pierre Fortin
On Sat, 23 Aug 2003 02:32:35 +0200 Udo Rader [EMAIL PROTECTED] wrote: hi, I have a directory that contains several hundred files and I want to copy them all except _one_ file. This sounds so easy yet still I am stuck or blind or stupid. Is there no not operator in bash? If it were,

Re: [expert] OT - for shell mongers: how _not_ to list a file

2003-08-23 Thread yankl
May be for copy all but one: mv not_this_one ~/tmp cp * /dist_folder mv ~/tmp/not_this_one . [EMAIL PROTECTED] yankl]$ mkdir test [EMAIL PROTECTED] yankl]$ cd test [EMAIL PROTECTED] yankl]$ mkdir temp [EMAIL PROTECTED] yankl]$ cd test [EMAIL PROTECTED] test]$ vi 1 [EMAIL PROTECTED] test]$ vi 2

[expert] OT - for shell mongers: how _not_ to list a file

2003-08-22 Thread Udo Rader
hi, I have a directory that contains several hundred files and I want to copy them all except _one_ file. This sounds so easy yet still I am stuck or blind or stupid. Is there no not operator in bash? If it were, some construct like the thing below could then list all files in