假设我输入文件的一行是这样的:
7162 "cw_107373" 65 65 0.197606944 328.935809057398 "91.67" "11/12" "0.89" "47/53" 0 N/A Active
You ll observe that some of the numerical fields are quoted, and some are not. I d like to be able to do numerical comparisons with them, while ignoring the quotes.
例如,我目前不能做
awk "$7 > 90{print}" Input.tsv
因为 7 美元是一个引用的数字字符串
我知道,我可以提前处理文件,删除所有引号,但我想知道,直接使用awk是否更优雅。