hi all To find if field 5 has I use the:
[[ -z ` echo $LINE | awk '{print $5}' ` ]]
my question if there is another elegant way to verify if field 5 is zero?
THX Yael
feedback
|
|
After Note: in your example line, if ttt were empty, yyy would be field 5, so be careful: you can use
instead of | ||||
|
feedback
|
|
This will pass if the 5th field is the string
Does that do what you want? It would be useful if you provided more example input. | |||
|
feedback
|