[samad@localhost test]$ head s1
depth lat lon SALT
0.0 -89.875 -179.875 34.02139
0.0 -89.875 -179.625 33.989212
0.0 -89.875 -179.375 33.989212
0.0 -89.875 -179.125 33.989212
0.0 -89.875 -178.875 33.989212
0.0 -89.875 -178.625 33.98929
0.0 -89.875 -178.375 33.98929
0.0 -89.875 -178.125 33.98929
0.0 -89.875 -177.875 33.98929
[samad@localhost test]$ grep -e "-89.875 -179.875" s1
[samad@localhost test]$
sed -n '2p' s1 | od -An -vtu1
48 46 48 9 45 56 57 46 56 55 53 9 45 49 55 57
46 56 55 53 9 51 52 46 48 50 49 51 57 10
اگه به خروجی دستور بالا توجه کنین می بینین که کارکتر بین اون دو ستون اسپیس نیست (کد اسکی 32 - SP) ، بلکه بین اون دو ستون تب قرار داره (کد اسکی 9 - HT).grep -Pe "-89.875\t-179.625" s1
grep -Pe "0.0\t-89.875" s1
[samad@localhost test]$ grep -Pe '51.125\t38.125' SALT.txt
0.0 -51.125 38.125 33.8183
0.0 51.125 38.125 6.04349
5.0 -51.125 38.125 33.80809
5.0 51.125 38.125 10.948
10.0 -51.125 38.125 33.800213
10.0 51.125 38.125 10.197109
15.0 -51.125 38.125 33.79801
15.0 51.125 38.125 17.98969
20.0 -51.125 38.125 33.80941
20.0 51.125 38.125 18.0277
25.0 -51.125 38.125 33.815212
25.0 51.125 38.125 18.03911
30.0 -51.125 38.125 33.8239
30.0 51.125 38.125 18.04411
35.0 -51.125 38.125 33.8278
35.0 51.125 38.125 18.06271
40.0 -51.125 38.125 33.83239
40.0 51.125 38.125 18.098991
45.0 -51.125 38.125 33.8399
^C
grep -Pe "\t51.125\t38.125" SALT.txt
و بعد از اون ها مطالعه ی man پیج ها خیلی مفید می تونه باشه.bash Cookbook - Carl Albing, JP Vossen, and Cameron Newham
Linux Shell Scripting Essentials - Sinny Kumari