Simple Computational tricks
Tuesday, February 3, 2015
Checks column 2, 3 and 4 for any -ve value, and replaces it by +ve.
awk '{print $1, $2<0?$2*-1:$2, $3<0?$3*-1:$3, $4<0?$4*-1:$4}' file1 > file2
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment