Search Results

Search: Posts Made By: dmesserly
3,107
Posted By dmesserly
That ^L is a pesky character. I've tried the...
That ^L is a pesky character. I've tried the above in sed and / or awk, used the octal \014 and the ^L, escaped it, quoted it, and everything else I could think to do, then directed it into a file...
3,107
Posted By dmesserly
Vi special character
When editing a file, vi displays a special character as ^L. Can you tell me the escaped character to be used in awk? And can that escaped character be used in a regexp in both sed and awk?
11,620
Posted By dmesserly
I want to match on pattern, print subsequent...
I want to match on pattern, print subsequent lines, then do NOT print from blahblah to EOF.
Pattern data data data
data data data
data data data
...
blabla <-- do not print to EOF. If first...
11,620
Posted By dmesserly
I would like it to stop after the data lines: ...
I would like it to stop after the data lines:
Pattern data data data
data data data
data data data
...
blahblahblah (another pattern match to stop printing?)
11,620
Posted By dmesserly
That sed command works great from command line,...
That sed command works great from command line, but when I put that pattern into an awk script, it only prints the pattern line. It does not print the subsequent lines. Can you tell me how to do...
11,620
Posted By dmesserly
awk print pattern match line and following lines
Data:
Pattern Data Data Data
Data Data Data
Data Data Data
...

With awk, how do I print the pattern matching line, then the subsequent lines following the pattern matching...
2,268
Posted By dmesserly
awk - end of line - Help!
I have a textfile which I am parsing with awk. The lines do not have the same number of fields, so sometimes $3 is the last field, sometimes not.

When I do a 'printf("%s, %s\n", $2, $3)', if $3...
Showing results 1 to 7 of 7

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