SyntaxFix
Write A Post
Hire A Developer
Questions
Pipe the result to awk:
awk
ping host | awk '{if($0 ~ /bytes from/){print strftime()"|"$0}else print}'