Aldo, le Sat 04 Oct 2008 18:40:09 +0200, a écrit :
> On Sat, Oct 04, 2008 at 02:56:10PM +0200, Samuel Thibault wrote:
> > En fait je me dis qu'il y a sans doute plus canonique:
> > 
> > € getent passwd samy
> > samy:x:1000:1000:Samuel Thibault,,,:/home/samy:/bin/zsh
> > 
> > et un petit coup de cut -d:
> 
> Nnnnn! j'aime bcp moins car tu as besoin d'entrer un mdp;

??
getent passwd ça lit juste /etc/passwd, tout comme finger.

> ici mon but est de
> récupérer  Osvaldo La Rosa  tout simplement, ni plus ni moins; et finger +
> le cut que j'ai appliqué le fais.

et
getent passwd samy | cut -d: -f5 | cut -d, -f1
le fait aussi.

Samuel
_______________________________________________
Liste de diffusion CarrefourBLinuX 
    [email protected]
    http://lists.freearchive.org/mailman/listinfo/carrefourblinux
Pour s'inscrire par courriel : 
    'mailto:[EMAIL PROTECTED]'
Pour se retirer de la liste par courriel : 
    'mailto:[EMAIL PROTECTED]'

Archives : http://lists.freearchive.org/pipermail//carrefourblinux
Anciennes archives (Yahoogroupes) :
    http://fr.groups.yahoo.com/group/carrefourblinux/messages
Rechercher : http://lists.freearchive.org/cgi-bin/search.cgi

Signets : http://fr.groups.yahoo.com/group/carrefourblinux/links/
Fiches EDU : http://blinuxwiki.pbwiki.com/FichesEdu

Répondre à