The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
file handling ninjanesto High Level Programming 2 12-27-2006 08:35 AM
File Handling in C trinath High Level Programming 3 01-19-2006 08:00 PM
File handling in UNIX VENC22 UNIX for Dummies Questions & Answers 4 05-17-2005 11:29 PM
file handling across servers raguramtgr UNIX for Dummies Questions & Answers 3 02-25-2004 09:09 AM
KSH File Handling madtim Shell Programming and Scripting 2 08-27-2002 11:08 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-03-2006
Registered User
 

Join Date: Mar 2006
Posts: 77
Exclamation file handling with ksh scripting

how can i write content of a variable to a file?

how can i read standard output into a variable?
Reply With Quote
Forum Sponsor
  #2  
Old 07-03-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,297
Code:
# how can i write content of a variable to a file?
echo "$myvariable" > myfile           # start
echo "$myvaririable" >> myfile        # append

#how can i read standard output into a variable?
# output from ls command stdout into variable
myvar=$( ls )
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 11:19 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