The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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
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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 02-02-2006
Registered User
 

Join Date: Aug 2005
Posts: 229
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
Reply With Quote
Forum Sponsor
  #2  
Old 02-02-2006
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,609
Code:
vi `ls -l | awk -F" " ' /foo/ {print $9} '`
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:07 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0