need a sed guru to help me strip out words
Yann Garcia
yann.garcia at smartcom.com
Thu Apr 22 16:09:37 UTC 2004
Hi,
I use awk, it's more easy :
fuser -u SO* | awk ' print $x '
where $x is the column number you want to extract.
(Ex. Ls -l | awk ' print $3 ' returns the list of the 'user' field).
Cheers,
Yann
-----Message d'origine-----
De : redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com] De la part de Eric Wood
Envoyé : jeudi 22 avril 2004 17:41
À : Red Hat List
Objet : need a sed guru to help me strip out words
# fuser -u SO*
SODEI: 8952(whse) 23496(lhoover) 28450(recept) 28845(dschuetterle)
30835(awalter)
SOLSI: 8952(whse) 23496(lhoover) 28450(recept) 28845(dschuetterle)
30835(awalter) 20242(ewood)
I need a sed formula to just list out the user names
# fuser -u SO* | sed 'something' | uniq
whse
lhoover
recept
dschuetterle
awalter
ewood
Any help is appreciated!
-eric wood
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
More information about the redhat-list
mailing list