The following awk command prints the results from services file# awk '{print $2}' /etc/services 48002/tcp48002/udp48003/tcpHow can I manipulate the output so it prints the service file before each line? Something like: # awk '{print $2}' /etc/services ....... service file 48002/tcp service file 48002/udp service file 48003/tcp
awk + how to manipulate awk output
awk;sed;rhel