Search Results

Search: Posts Made By: houkto
12,854
Posted By Don Cragun
You say that the file is tab delimited, but there...
You say that the file is tab delimited, but there are single space characters (rather than tabs) between fields in your sample file. Which is it?

How long is the longest line in your file? What...
12,854
Posted By Subbeh
Based on your example input file, this should...
Based on your example input file, this should work:
awk '{for (i=6;i<=NF;i++) if ($i==$9 && i!=9) next}1' file
12,854
Posted By MadeInGermany
Then it becomes awk '{p=1; if ($8!=$9) p=0;...
Then it becomes
awk '{p=1; if ($8!=$9) p=0; for (species=6; species<=10; species++) if (species!=8 && species!=9 && $species==$8) p=0} p' fileNote that p=1 means to be printed, and there are two...
12,854
Posted By MadeInGermany
Print lines where the contents of the 9th field...
Print lines where the contents of the 9th field is different from the contents of the 6th, 7th, 8th, and 10th fields:
awk 'BEGIN{field=9} {p=1; for (species=6; species<=10; species++) if...
2,840
Posted By ctsgnb
awk -F\\t '$7!=$8' input---------- Post updated...
awk -F\\t '$7!=$8' input---------- Post updated at 09:24 PM ---------- Previous update was at 09:14 PM ----------

Please note that the example you paste is not <tab> delimited, it contains a lot...
1,772
Posted By ahamed101
See if this will help... awk ' FILENAME !=...
See if this will help...

awk '
FILENAME != "list"{
if(filename!=FILENAME){
filename=FILENAME;
a[FILENAME"HDR"]=$0;
next;
}
...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 05:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy