Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

awk AND OR

AND &&
OR ||
e.g.
margin=180
cat Eenrgy.dat | awk -v marg="$margin" '{if($1>marg || $1<60) print $0}' > youfile.dat
					^assing envirimntal varible to awk   
 
PREVIOUS NEXT
Tagged: #awk #AND #OR
ADD COMMENT
Topic
Name
6+4 =