Search Results

Search: Posts Made By: ejazs0
5,563
Posted By ejazs0
Hi Thanks awk '/Name: xyz/,/end of text/...
Hi Thanks

awk '/Name: xyz/,/end of text/ {print}' infile

is working fine!!

One more small request..

If the pattern of the input file is

line1..
line2..
Name: abs
Some...
5,563
Posted By ejazs0
How to extract a text portion from a file
Can some one help me with shell script to extract a text block between two known strings.

The given input file is as below:

Name: abs
Some tesxt....
Some tesxt....
Some tesxt....
end of...
Showing results 1 to 2 of 2

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