bash - Base64 data in awk -


i have file , process awk tool.

awk -f "|" '{print $3 "|" $7 "|" $1 "|" $2}' animals.csv | grep cats >> data.txt 

how can make $3 encode base64 format?

thank you.

try doing :

awk -f "|" '     {         "echo "$3" | base64" | getline x         print x, $7, $1, $2     } ' ofs='|' animals.csv | grep cats >> data.txt 

the awk's getline read variable system command.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -