VRideru, dobra je i deja, ali malo je treba doraditi
# egrep '^[^:]*:[^:]*:[^:]*:100:' /etc/passwd | cut -d: -f1 | xargs -n 1 chage -d ${DATUM}
${DATUM} je naravno datum koji hoćeš
Ko ne voli
xargs, može i sa
for petljom:
# for KORISNIK in $( egrep '^[^:]*:[^:]*:[^:]*:100:' /etc/passwd | cut -d: -f1 ); do chage -d ${DATUM} ${KORISNIK}; done
int rand(void);
Those who do not understand Unix are condemned to reinvent it, poorly.
Upali lampicu — koristi Jabber!