Hi all,
i need help with this code
set login = (`cut -d ":" -f1 /etc/passwd.2001`)
set group = (`cut -d ":" -f4 /etc/passwd.2001`)
set name = (`cut -d ":" -f5 /etc/passwd.2001 | cut -d ":" -f1`)
set i = 1
while ($#login > 0)
set pom = `last $login[1] | wc -l`
if ($pom < 3) then
echo "Output: '$login[1] $group $name'"
i ++
endif
shift login
end
when i run this i get a message
Missing -.
Any idea what is wrong? Im using C shell.
Thanks.