Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print put with awk

Status
Not open for further replies.

LotoL

Programmer
Joined
Mar 17, 2004
Messages
20
Location
CA
Does anyone know how to search and print out 10 or 20 lines.

Just say I have a input file call A. In the input file I have numbers 1 - 100. Each number on a new line. What I want to do is search for a number say 20. Then printed out 20, 21, 22...., up to 30 or 40.

is this possible with awk.
 
Sounds similar to thread271-747248
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top