I have 10 files with several IP ping test results
--- 10.90.101.224 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
Some Text here...
--- 10.90.101.225 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
Some Text here...
--- 10.90.101.226 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
i used > grep -A1 'ping statistics' *.log
and got the output below
--- 10.90.101.224 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
--- 10.90.101.225 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
--- 10.90.101.226 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
i wanted to get the output with the format below
--- 10.90.101.224 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms
--- 10.90.101.225 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms
--- 10.90.101.226 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms
--
in your output when you use-A1
?