Entering edit mode
                    5.2 years ago
        Nuthatch
        
    
        •
    
    0
    Hello everyone, I have a mydata.ped file, made up of 10215 rows (individuals) that looks like this:
1  MAL-005  0 0  1 1  3 3  4 4
2  MAL-006  0 0  3 3  1 1  4 4
3  MAL-007  1 1  0 0  1 3  4 4
4  MAL-008  1 1  0 1  1 3  3 4
Now, on bash, I need to check if the word "MAL-007" is present in the second column of mydata.ped file, and if yes, I want a script that prints "yes". Can anyone help me? Thank you.
another awk solution: