I have a long report in the form of text tab-delimnated ( meaning if I open this text file in excel spreadsheet then every word and number will fit in a cell). In this report there are key words that I am looking for and I want to print the four numbers next to this key word. For example, let's say this paragraph is in the report (which is text tab delimnated) and the key word is "number "
The following number 00 02 25 226 is my card ID. I can use the command "grep" to search for the exact word "number", but how can I grep this word and the next four cells (i.e. digits)