Search Results

Search: Posts Made By: Baishali
1,820
Posted By Baishali
Thank you..I tried it and it works as expected!
Thank you..I tried it and it works as expected!
1,820
Posted By Baishali
---------- Post updated at 11:58 AM ----------...
---------- Post updated at 11:58 AM ---------- Previous update was at 11:36 AM ----------

Thank you RudiC for the alternate solution,
However the word Block was to illustrate an example, the file...
1,820
Posted By Baishali
I tried the below code : awk...
I tried the below code :



awk '/STARTREGEX/{P=1;getline;print;} ; /ENDREGEX/ { P=0 } ; P && /LINEREGEX/{ print }' datafile


This however prints all the block names along with the lines...
1,820
Posted By Baishali
Thank you for the help. However, I wanted to...
Thank you for the help.

However, I wanted to fetch the first line after the 'STARTREGEX' as well, as each pattern block name(1st line after the pattern) containing the matched string is also...
1,820
Posted By Baishali
Search a string inside a pattern matched block of a file
How to grep for searching a string within a begin and end pattern of a file.

Sent from my Redmi 3S using Tapatalk
Showing results 1 to 5 of 5

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