Return to Snippet

Revision: 70515
at March 20, 2016 17:51 by secdebian


Initial Code
 # print every line after replacing each field with its absolute value
 awk '{for (i=1; i<=NF; i++) if ($i < 0) $i = -$i; print }'
 awk '{for (i=1; i<=NF; i++) $i = ($i < 0) ? -$i : $i; print }'

Initial URL

                                

Initial Description

                                

Initial Title
 # print every line after replacing each field with its absolute value

Initial Tags
line

Initial Language
Awk