Help needed - How to check quality of a specific column in a tab-delimited file?
Hi guys, could anyone please provide me the shell commands for such two goals?
In a tab-delimited file, Code:
1 a I a 11 a a 2. How can I find the non-integer values in the 5th column (abc, in this case)? Thank you sooooo much for your help! |
For the first question something like
Code:
cat input.txt | awk '{print $1}' | sort | uniq -d |
awk '$5 !~ /[0-9]+/ { print $0 }' in.txt
For number 2 Don't forget to mark as SOLVED if your problem has been resolved. |
Thank you soooo much guys!
|
All times are GMT -5. The time now is 08:47 PM. |