GirlInTrouble
Technical User
Hi there you guys ;-)
Im trying to get the first 3 fields from a finger -s command
I've tried using cut but that doesn't work.
who |cut -d" " -f1|xargs finger -s|cut -d" " -f1,2,3
The output of finger is seperated with multiple spaces. Do I used IFS again? How do I say my delimiter is junk? I tried -s on cut - no use though. I also tried pr (from last time ;-) )
Any ideas boys?
Thanks
Im trying to get the first 3 fields from a finger -s command
I've tried using cut but that doesn't work.
who |cut -d" " -f1|xargs finger -s|cut -d" " -f1,2,3
The output of finger is seperated with multiple spaces. Do I used IFS again? How do I say my delimiter is junk? I tried -s on cut - no use though. I also tried pr (from last time ;-) )
Any ideas boys?
Thanks