![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Extracting specific info from finger command | franny | UNIX for Dummies Questions & Answers | 1 | 12-05-2007 01:13 PM |
| How to unset 'finger' info? | Chanakya.m | Shell Programming and Scripting | 3 | 01-23-2006 09:12 AM |
| Extracting Info | muneebr | UNIX for Dummies Questions & Answers | 3 | 09-06-2005 08:57 AM |
| extracting info from Unix database to construct a visual diagram | fusion99 | UNIX for Advanced & Expert Users | 0 | 11-30-2004 01:29 AM |
| How to find out the spec of my AIX? | E-Quality | UNIX for Dummies Questions & Answers | 2 | 09-18-2001 09:36 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Extracting specific info from finger command
my unix is bash based and the finger command output is:
Login Name Tty Idle LoginTime Office amos.john Amos John pts/26 1 Dec 5 16:18 (77.100.22.07) What am trying to achieve is extract the Login (amos.john) and Name (Amos John) from this output without using awk or sed. Any pointers please, thanks. |
|
||||
|
sorry about the double post vgersh99.
the solution you gave didn't work in bash. I was able to use cut -d ' ' -f1 file to get the first word on the line but cant get the second word on line primarily cos i dont know how to represent the tab delimiter oor multiple space as a delimiter. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|