Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Grepping beginning of line...
Name: daelomin Date: August 7, 2006 at 09:03:35 Pacific OS: Mandriva CPU/Ram: P4 1gig Product: Dell
Comment:
hi,
I cannot seem to grep the beginning of line character when combining it with say a space in a regular expression.
Namely, I want to grep all occurences of CALL in a file but only when it is preceded by spaces or the beginning of line character.
I tried doing this:
grep "[ ^]CALL" file
but it does not work. I cannot put the ^ before for it inverses the selection...
Summary: "echo $sline" displays the contents of the variable sline to standard out and the pipe ("|") causes the contents of standard out to be copied from the echo command to the cut command. "cut" lets you e...
Summary: Perhaps the whole word flag will help you. From the man page -w, --word-regexp Select only those lines containing matches that form whole words. The test is that the matching substring must e...
Summary: Hi! I want to know if there is any way to substitute the contextual grep (grep -C...) command of Linux in UNIX. My problem is that I need to output the next 10 lines following my grep search of a lo...