Author

Christopher Marshall (christopherlmarshall@yahoo.com)

Raw Notes on grep

# outside of brackets, '^' matches the beginning of the line
# inside of brackets, '^' negates the sense of the expression
# in brackets.
#
# So
grep "^[^1]"

# would mean reject any lines that start with '1'
#

# a star after a bracketed expressions means repeat 0 or more times
# so
grep "^[^.]*,0"

# means, match lines with anything but a '.' before the first comma, and with a 0 right after the first comma

hopeless_linux: RawNotes/grep (last modified 2007-07-01 16:01:00)