bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep -o '^.'


From: SilverSturm
Subject: grep -o '^.'
Date: Sat, 22 Mar 2008 21:36:09 -0600

$ uname -a
Darwin Hostname 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT
2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386
$ grep --version
grep (GNU grep) 2.5.1

Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ grep -o '^.' <<here
> ABC
> DEF
> XYZ
> here
A
B
C
D
E
F
X
Y
Z


Shouldn't this command print out just 'A', 'D", and 'X' ?

~ Derek


reply via email to

[Prev in Thread] Current Thread [Next in Thread]