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
php script + not displaying webpage JamesGoh Web Programming, Web 2.0 and Mashups 1 03-04-2009 06:01 PM
Cisco TCL script write stdout to tftpboot research3 Shell Programming and Scripting 0 12-05-2008 12:41 PM
How to capture STDOut of script in a CGI script? kittu1979 UNIX for Advanced & Expert Users 1 11-10-2008 04:29 AM
Script Output Woes (stdout?) c0nn0r Shell Programming and Scripting 2 07-09-2006 06:22 PM
vi editor not displaying? ananthu_m SCO 3 10-14-2003 01:51 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-28-2009
yakari yakari is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 16
displaying stdout of a script using vi editor

Hi,
Is there a way to display the stdout of a script using vi editor without writing the stdout to a file.

I have a script (format.sh) which reads a file and displays it in a special format.
i want to see this displayed text using vi editor?

currently i am doing:
format.sh myfile> out.txt
vi out.txt

but can i do it in one shot without using a temporary out.txt file

thanks in advance...
  #2 (permalink)  
Old 06-28-2009
scottn scottn is online now Forum Advisor  
VIP Member
  
 

Join Date: Jun 2009
Location: Zürich, CH
Posts: 1,088
This works for me...


Code:
cat file1 | vi -

(where "cat file" is your program - i.e. format.sh)
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:25 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0