troubleshooting Question

Commandlines and finding irssi usernames and realnames

Avatar of excii
excii asked on
Unix OS
4 Comments1 Solution830 ViewsLast Modified:
Hi !

I have been trying to make 'ircusers' -file which contains few commandlines. Commandline -file shoud list all current users which are using irssi software from system's process list. And each user should be listed only ONCE. So print layout should be like this:

Login: mharriga Name: Mike Harrigan
Login: ahoobler Name: Andrew Hoobler
and so on.

I have tried few hours and I haven't got it work. Here is what I have now:

for names in " "; do ps -au | grep irssi | cut -d" " -f1 | sort -u; finger $names; done
echo 'Login: ';
cut -d" " -f1
echo 'Name: ';
cut -d" " -f2
echo '\n';

I don't now how to combine those commands and get them work, if I am even close. Help?


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros