Hi guys.
I am trying to perform a search using grep. I get my grep to work, but need to "awk" a Process Number that is 2 lines above...
Example:
I run a query on my TSM server for Processes that are "Waiting" for something...it returns this:
Process Number: 32,881
Process Description: Space Reclamation
Status: Offsite Volume(s) (storage pool T950_VAULT_OTHERDB), Moved Files: 0, Moved Bytes: 0, Unreadable Files: 0, Unreadable Bytes: 0. Current Physical File (bytes): 2,413,746 Waiting for mount of input volume 210674L4 (4 seconds). Waiting for mount of scratch volume (4 seconds).
If i "grep" the word "Waiting", all i get is this:
Status: Offsite Volume(s) (storage pool T950_VAULT_OTHERDB), Moved Files: 0, Moved Bytes: 0, Unreadable Files: 0, Unreadable Bytes: 0. Current Physical File (bytes): 2,413,746 Waiting for mount of input volume 210674L4 (4 seconds). Waiting for mount of scratch volume (4 seconds).
How would get my return to show me the above 2 lines, especially the one about the process number, so that i can awk it out?
Thanks.