I want to grep a number 9366109380 from a file but it will also show me the next 5 lines. Below is the example-
when i grep 989366109380, i can also see the next 5 lines.
Line 1. <fullOperation>MAKE:NUMBER:9366109380:PPAY2;</fullOperation>
Line 2. <starttime>20081003000047</starttime>
Line 3. <stoptime>20081003000047</stoptime>
Line 4. <fullResult>940120105;;</fullResult>
Line 5. <status>FAILED</status>
check the -A option of grep..Example shown below...Grepped on "bash" keyword and printed next 5 lines.
[root@iqcharlie nua7]# grep -A 5 bash create_current.conf
#!/bin/bash
echo "Please enter the hostname"
read hostname
echo "Please enter the ipaddress"
read ip
echo "Please enter the DB server name"