Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
awkcommand [2017/08/14 12:26]
yassine chaouche
awkcommand [2018/09/24 20:04] (current)
yassine chaouche
Line 5: Line 5:
 ==== How to retrieve the results of a command inside awk ? ==== ==== How to retrieve the results of a command inside awk ? ====
  
-The equivalent of $(cmd arg) in bash for awk is : +The equivalent of bash's ''​$(cmd arg)''  ​in awk is : 
 <​code>​ <​code>​
 "​command arg" $awkvar " other command args if any" | getline somevar "​command arg" $awkvar " other command args if any" | getline somevar

QR Code
QR Code How to retrieve the results of a command inside awk ? (generated for current page)