passing variables to awk has been looked at before with the -v, but I have a list of variables to set up.......do I need to enter -v ... -v ... -v ... etc etc a mile long?
I am trying to run a script which pulls out all users from the /etc/passwd file, subjects that list of users to exclusion criteria (removing system users from the list such as root, lp, sys etc) and produces a new list of users. I need to pass the new list of users to awk to determine the users...
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.