![]() |
|
|
grep unix.com with google
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Our Members | Calendar | 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 and shell scripting languages here. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
I know it's been covered a number of ways, but just to throw an extra answer in the mix you could use the oft forgotten nl (number line) command Code:
root@bms-nycnm-srv02:/usr/local/isa/run# ls|nl
1 BmsUI.mpid
2 BmsUI.pid
3 CORBAnameservice.mpid
4 CORBAnameservice.pid
5 CORBAnotificationservice.mpid
6 CORBAnotificationservice.pid
and redirect at your leisure. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell Script Help -I'm a newbie | hotcutiepie05 | Shell Programming and Scripting | 0 | 06-08-2009 09:15 PM |
| Help - shell script newbie | eback | Shell Programming and Scripting | 2 | 10-15-2007 06:28 PM |
| A few questions from a newbie(shell script) | perk_bud | Shell Programming and Scripting | 5 | 07-21-2007 06:59 AM |
| NEWBIE: If and Find in shell script | meskue | Shell Programming and Scripting | 1 | 06-30-2006 02:28 AM |
| Newbie using sed in a shell script | ktoz | Shell Programming and Scripting | 1 | 05-26-2003 06:07 PM |