Search Results

Search: Posts Made By: antman
17,026
Posted By pamu
Try this.. It will print page number before OC...
Try this.. It will print page number before OC pattern..


awk '/^[0-9][0-9][0-9]/{a++;print "Page N0-"a}1' file

and

awk '/^000/{a++;print "Page N0-"a}1' file

as per your given data......
Showing results 1 to 1 of 1

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