Hello,
The simplest is to add a space before $i in your grep:
=> grep " \<$i\>" instead of grep "\<$i\>" .
It works but isn't too elegant.
Your problem is that grep "admin" returns 2 lines.
grep -w doesn't seem too helpful. Special regexps in egrep should do. But here again nothing seems...
Hello,
I need to interact awk with an existing program (gcc-compiled) I wrote. This gcc-program takes arguments at the command line and returns a number.
More precisely, the arguments are listed in a text file ; I need awk to fetch the arguments, serve them as input to the gcc-program and ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.