Search Results

Search: Posts Made By: eh3civic
1,727
Posted By Corona688
Is the first ------------- necessary? If not,...
Is the first ------------- necessary? If not, awk makes this easy.

Set RS="------..." so awk considers each thing between -------'s one record.
Set FS="\n" so each line is considered one field....
6,433
Posted By vgersh99
one way: nawk '{gsub("^--*$", "")}1' myFile ...
one way:

nawk '{gsub("^--*$", "")}1' myFile | nawk '/Content-Type/' RS=""
Showing results 1 to 2 of 2

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