sed - Add text to beginning of awk result -
good day all,
i running below command:
netstat -an | awk '/:25/{ print $4 }' | sed 's/:25//' | paste -sd ',' -
which produces
192.168.2.22,127.0.0.1
i amend result below (to parsed csv application)
manuallyaddedtext 192.168.2.22,127.0.0.1
many
echo -n "mytext " ; netstat...
Comments
Post a Comment