RE: grep and exact matches help..

2007-04-03 Thread Dave Korn
On 03 April 2007 23:28, Matthew Woehlke wrote: > Thrall, Bryan wrote: >> Gary Johnson wrote on Tuesday, April 03, 2007 5:05 PM: >>> If you're piping 'ls' into another command, the -1 isn't necessary. >>> 'ls' detects that its stdout is not a tty and delivers single-column >>> output automatically.

Re: grep and exact matches help..

2007-04-03 Thread Matthew Woehlke
Thrall, Bryan wrote: Gary Johnson wrote on Tuesday, April 03, 2007 5:05 PM: If you're piping 'ls' into another command, the -1 isn't necessary. 'ls' detects that its stdout is not a tty and delivers single-column output automatically. Not when you use 'ls -l': Sure it does. There is still on

RE: grep and exact matches help..

2007-04-03 Thread Thrall, Bryan
Gary Johnson wrote on Tuesday, April 03, 2007 5:05 PM: > On 2007-04-03, Dave Korn wrote: > >> BTW2, I assume we're still talking about your script from before. >> Seriously, use "ls -1" rather than "ls -l" (that is, use a one >> instead of an L), because then you get /just/ the filenames, one pe

Re: grep and exact matches help..

2007-04-03 Thread Gary Johnson
On 2007-04-03, Dave Korn wrote: > BTW2, I assume we're still talking about your script from before. > Seriously, use "ls -1" rather than "ls -l" (that is, use a one instead of an > L), because then you get /just/ the filenames, one per line, and won't have to > worry about parsing the name out f

Re: grep and exact matches help..

2007-04-03 Thread Peter Rehley
On Apr 3, 2007, at 11:00 AM, Kevin Markle wrote: In this search I want to get winops only not winops and winops-hq [EMAIL PROTECTED] /cygdrive/e/wsus/group_1a_DEV $ ls -al | grep winops -rwx--+ 1 Administrators 1079474 Apr 2 19:32 winops- hq_WINDOWSUpdate.log -rwx--+ 1 Admin

RE: grep and exact matches help..

2007-04-03 Thread Dave Korn
On 03 April 2007 19:01, Kevin Markle wrote: > In this search I want to get winops only not winops and winops-hq > > [EMAIL PROTECTED] /cygdrive/e/wsus/group_1a_DEV > $ ls -al | grep winops > -rwx--+ 1 Administrators 1079474 Apr 2 19:32 > winops-hq_WINDOWSUpdate.log > -rwx--+ 1 A

Re: grep and exact matches help..

2007-04-03 Thread Matthew Woehlke
Kevin Markle wrote: In this search I want to get winops only not winops and winops-hq [EMAIL PROTECTED] /cygdrive/e/wsus/group_1a_DEV $ ls -al | grep winops -rwx--+ 1 Administrators 1079474 Apr 2 19:32 winops-hq_WINDOWSUpdate.log -rwx--+ 1 Administrators 18993 Apr

Re: grep and exact matches help..

2007-04-03 Thread Kevin Markle
In this search I want to get winops only not winops and winops-hq [EMAIL PROTECTED] /cygdrive/e/wsus/group_1a_DEV $ ls -al | grep winops -rwx--+ 1 Administrators 1079474 Apr 2 19:32 winops-hq_WINDOWSUpdate.log -rwx--+ 1 Administrators 18993 Apr 3 13:02 winops-hq_as

RE: grep and exact matches help..

2007-04-03 Thread Dave Korn
On 03 April 2007 18:33, Kevin Markle wrote: > Hello, > > I can't seem to find a way to get grep to do exact matches in cygwin. I > have looked at the man pages and can find nothing? :/ grep only does exact matches if you don't use any of the wildcard chars, perhaps 'exact matches' isn't quite

grep and exact matches help..

2007-04-03 Thread Kevin Markle
Hello, I can't seem to find a way to get grep to do exact matches in cygwin. I have looked at the man pages and can find nothing? :/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin