Results 1 to 2 of 2
i have a problem with shell script (gawk)
example: gawk -F ":" '$1 == $abc {print $0}' xyz
it can't read $abc,if i change $abc = 1,2,3...a,b,c....it can read,
please ...
- 10-07-2011 #1Just Joined!
- Join Date
- Oct 2011
- Posts
- 1
plz help me
i have a problem with shell script (gawk)
example: gawk -F ":" '$1 == $abc {print $0}' xyz
it can't read $abc,if i change $abc = 1,2,3...a,b,c....it can read,
please tell me how about to make it read $abc(because i have 1 variable at here) T_T
- 10-10-2011 #2Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
I can't quite understand the problem, as you've described it. Can you post the contents of file xyz? And also what is the variable $abc supposed to be?


Reply With Quote