Okay, I bet this is easy, but can't seem to pull it out...
I want to do a for loop substitution in an awk line, sorta like this:
for i in 1 2 3 4 5 6 7 8 9
do
user=`finger $LOGNAME | awk '{print ${@}}'`
echo "Hello $user"
done
If I put a number in for {@}, I get that field, but I...
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.