![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ambiguity in program output | bishweshwar | High Level Programming | 3 | 01-21-2008 08:07 AM |
| Interpreting java output stream as system commands in Solaris | EugeneG | UNIX for Dummies Questions & Answers | 1 | 07-18-2007 02:45 PM |
| C program Output | arunviswanath | High Level Programming | 3 | 07-04-2007 10:16 PM |
| Capturing cli Program output | Christopher | High Level Programming | 1 | 12-06-2001 08:08 AM |
| stream output?? | solvman | High Level Programming | 2 | 10-17-2001 09:51 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
how can I use the stream output in other program
Hello
I wander if im doing : ls –l and its giving me lets say 3 results : -rw-r--r-- 1 blah other 1789 May 19 2003 foo.c -rw-r--r-- 1 blah other 1014 May 19 2003 foo.h -rw-r--r-- 1 blah other 270 May 19 2003 foo1.c now I would like to use the first result and open it with vi . is there any way to do it with out copy it from the screen ? (vi foo.c) can I access this result by index or other program and pass it to the vi . thanks |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Code:
vi `ls -l | awk -F" " ' /foo/ {print $9} '`
|
|||
| Google The UNIX and Linux Forums |