5

Cant see rest of the output of the file using awk

view full story
linux-howto

http://www.unix.com – I am trying to parse through set of data from large txt file and only intersted in output below . i am using below awk command to get the output but it only shows first line , i need to see the rest of the output under hardware inventory. see below ]$ awk '{ if ( $0 ~ "^Hardware inventory" ) { print; getline tmp; print tmp } } ' wor3e01_result.txt Hardware inventory: Item Version Part number Serial number Description Hardware inventory: Item Version Part number CLEI code FRU model number thanks in advance! jared (HowTos)