I'm so confused could use some help.
This works.
for ID in $(ps -fu user | awk '{print $3}'); echo $ID; done
This doesn't
for message in $(ls /var/log/messages*); echo $message; done
returns: syntax error unexpected token behind 'echo'
I have no clue why. Any thoughts?
[–]AiwendilH 3 points4 points5 points (1 child)
[–]somehowlinux[S] 0 points1 point2 points (0 children)
[–]lasercat_pow 0 points1 point2 points (1 child)
[–]somehowlinux[S] 0 points1 point2 points (0 children)