I have a file with 2 types of contents as below.QJKLJFLHLKJDGFIUD 03:12:23  JHKJFDGDSFGDFGHDF 03:15:45  HJIK  ASDSdSADSADSSADSA 03:30:34  DFDF  KWQAI have 2 binaries. One is on the local computer and other is on  the remote computer. If the line contains a timestamp, I have to call local binary and pass the line as argument to the binary.If  the line doesn't contain a timestamp, I have to call the remote binary and pass the line as argument to the binary.How can I achieve this?
Line match to trigger specific argument
text processing;awk
awk 'NF==2 {system(/bin/echo  $0); next;}  {system(/bin/echo  $0  | rev); next;}' inputfileEdit 1:awk 'NF==2 {system(ssh user@remote kimera  $0); next;}  {system(kimera  $0); next;}' inputfileIf kimera expects a single argument then you need ... kimera \ $0 \ instead.