Cant see rest of the output of the file using awk

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

1>Use Code tags
2>The command is correctly giving in the way its designed
3>Unless you don't mention your output data, helping is very difficult

try first:

dos2ux wor3e01_result.txt

then run the awk

when i try dos2ux i get following error message.
bash: command not found

also the output i like to see is below:

Item Version Part number CLEI code FRU model number
FPM Display REV 03 710-021387 CRAFT-TXXX-S
CIP REV 06 710-002895 CIP-L-T640-S
PEM 0 Rev 02 740-026384 IPUPAC7KTB PWR-TXXX-3-80

---------- Post updated at 03:36 PM ---------- Previous update was at 03:34 PM ----------

hi what is code tag? sorry new to unix:)

---------- Post updated at 03:37 PM ---------- Previous update was at 03:36 PM ----------

BTW: what is code tag? new to unix guys:)

Code tags are not a "Unix thing". They're a forum thing. You got a PM about it. And a couple of infraction points with it.

try:

dos2unix wor3e01_result.txt

oK COOL....I WAS ABLE TO DO WHAT I WAS TRYING TO DO VIA USING GREP....WORKS FINE...BUT DO LIKE TO KNOW IF SAME CAN BE DONE USING AWK.

grep -A45 "Hardware" XXX.txt 

or

cat xxx.txt | grep -A2000 "Hardware inventory" | grep -B2000 "Hardware inventory"

You can use

awk 'c-->0;$0~s{if(b)for(c=b+1;c>1;c--)print r[(NR-c+1)%b];print;c=a}b{r[NR%b]=$0}' b=2000 a=45 s="Hardware inventory" file

b=before
a=after

thanks to Franklin52 for this.

PS Turn of caps look when typing.

i tried your suggestion dos2unix and then ran the cmd awk with same result. i am still not able to see the desired output under hardware inventory.
any suggestion.

[b]dos2unix wor3e01_result.txt

$ awk '{ if ( $0 ~ "^Hardware inventory" ) { print; getline tmp; print tmp } } ' wor3e01_result.txt

Hardware inventory:
Item             Version  Part number  Serial number     Description

as you can see i expect to see something after hardware inventory but no output....i think i tmay be somethign to do with $0 but not sure..

any help will be appreciatiated...

---------- Post updated at 11:03 AM ---------- Previous update was at 10:57 AM ----------

jotne,

i tried your suggestion it did work but add some extra line on top whihc i realy dont need.. any idea

Give example of text and I will test too see what is wrong.

i should see whatever is under the hardware inventory like below...

Hardware inventory:
Item             Version  Part number  Serial number     Description
Chassis                                D3636             M320
Midplane         REV 08   710-009120   TS0977            M320 Midplane
FPM GBUS         REV 05   710-005928   XW5987            M320 Board
FPM Display      REV 05   710-009351   XS5720            M320 FPM Display
CIP              REV 05   710-005926   XW6402            M320 CIP
PEM 0            Rev 08   740-009148   VK57595           DC Power Entry Module
PEM 1            Rev 08   740-009148   VK57527           DC Power Entry Module

---------- Post updated 11-29-12 at 07:49 AM ---------- Previous update was 11-28-12 at 11:21 AM ----------

Guys,

any suggestion how to get the remaing output from the file using awk? or sed?