[LUGOS] some more bash

Primož Gabrijelčič primoz at gabrijelcic.org
Mon Jul 7 20:22:14 CEST 2003


> > $ cut -d: -f1 /etc/passwd
> Kako bi pa uporabnike z uid >500 izbral? Resno, a obstaja kak 
> select ali kaj podobnega? A je tudi tu kak švicarski pipec na voljo?

Jaz znam z motornimi škarjami :)

  perl -F":" -ane 'print "$F[0]\n" if $F[2] > 500' /etc/passwd

Pozdrav,
    Gp

    WinGpT: Bigger is always better.  Too much is never enough.
OpenBSD SI: http://obsd.17slon.org, http://obsd.17slon.org/list





More information about the lugos-list mailing list