I have a output in a file and i want to parse the file line by line to just get the line with the “ip address(10.113.193.70)” and the “Version: 47.80.99.08” to the standard output. What would be the best way to parse using grep/awk or bash?
10.113.193.70
Executing (0,0,0,0,0,0,0,0,0,0):
==== product information ====
Product: e10
Package: default
Version: 47.80.99.08
Type: customer
Builder: symsm
Project: RAID
all of
awksedgrepbashwill workthis is assuming that the line with the IP is on the start of the line,
and no other line starts with a digit.
Otherwise you can refine the IP pattern.
bash:
grep:
awk:
sed: