RE : need a sed guru to help me strip out words

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Sorry, I make a fault: the right command is:
	fuser -u SO* | awk ' { print $x } '

For me, it is the end of the day!

Cheers,

Yann

-----Message d'origine-----
De : Yann Garcia [mailto:yann.garcia@xxxxxxxxxxxx] 
Envoyé : jeudi 22 avril 2004 18:10
À : 'General Red Hat Linux discussion list'
Objet : RE : need a sed guru to help me strip out words

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@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] 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@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux