Search Results

Search: Posts Made By: topmhat
2,856
Posted By mirni
The filter operates on lines that contain 'ABCD|'...
The filter operates on lines that contain 'ABCD|' anywhere in the line. Use grep to find them.

The first sed command filters out only lines that contain 'ABCD|' and passes them on unchanged,...
2,856
Posted By ddreggors
oops yep I was wrong there. I oddly missed...
oops yep I was wrong there.

I oddly missed that '/' was the deliminating character for the regex pattern and therefore the p on the other side was actually a sed command.
I guess the '|/' threw...
2,856
Posted By mirni
Mmmmm... no. The string 'ABCD|' is a literal,...
Mmmmm... no.
The string 'ABCD|' is a literal, the rest '/p' is the end of regex ('/') and print command ('p'). So the first sed command

sed -n -e '/^.*ABCD|/p'
is an instruction to print only...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 05:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy