Hi have the following code:
for file in /dir/*;do if grep -q E "$file"; then awk '{print $2,$10}' OFS='\t' "$file" > /newfile fi done
where the files are tab separated and the loop checked the occurring of E in the files(this works). I need to check two columns $3 and $4 of any file, but this not work in the same if like:(grep -q E "$file"&& $3>10&&$4>100)
. How I can check all this conditions in the same loop?
Aucun commentaire:
Enregistrer un commentaire