![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell script to search for text in a file and copy file | imeadows | UNIX for Dummies Questions & Answers | 8 | 04-20-2008 01:41 PM |
| Shell script for text extraction from a file | vignesh53 | Shell Programming and Scripting | 3 | 02-05-2008 04:16 AM |
| Looking for command(s)/ script to find a text string within a file | wrwelden | Shell Programming and Scripting | 5 | 11-22-2006 08:53 PM |
| Using the Finger command in a Script | apolishuk | Shell Programming and Scripting | 4 | 12-02-2003 10:42 AM |
| redirecting username to finger | dhinojosa | UNIX for Dummies Questions & Answers | 2 | 02-06-2002 08:11 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
How to input username on text file into finger command on shell script
I'm trying to clean up my server and I have the list of some "special" users stored on the text file like this
Quote:
So I reallie appreicate if anyone here can give me some kind of advice on how to do it. I'm having problem trying to figure out how to take the username on the text file and input them into the finger command (maybe using while but hmm...) |
| Forum Sponsor | ||
|
|
|
|||
|
When you do the "du" command, it will usualy display the result in the format like this 10MB /home/test/username so is there anyway that I can cut the "username" from it so that I can input it into the my current finger script? I guess sed or awk would do but gosh, where is my sed & awk book Last edited by Micz; 11-07-2005 at 09:07 PM. |