Within bash, I'm trying to search (grep) the output of a command (ntp), for a specific string. However, one of the columns in the output is constantly changing. So for that column it could be any character.
I'm probably not doing this correctly, but the *
is not working like I hoped.
ntpq -p | grep "10 l * 64 377 0.000 0.000 0.001"
The asterisk is replacing a column that changes from - to 1-64, by the second.
any help would be much appreciated!