![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | 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. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to store the first content of the folder in a variable?(Urgent) | sunitachoudhury | Shell Programming and Scripting | 3 | 04-08-2008 04:11 AM |
| Content of Content of a variable! | jaduks | Shell Programming and Scripting | 2 | 08-27-2007 01:40 AM |
| redirecting a file | wip_vasikaran | Shell Programming and Scripting | 3 | 07-12-2007 05:14 AM |
| How to replace a variable content | josephwong | Shell Programming and Scripting | 4 | 06-26-2006 12:18 AM |
| Compare the content of a variable with a string | robdai | UNIX for Dummies Questions & Answers | 2 | 11-01-2005 07:29 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hello!
I'm having problems trying to extract the contents of a variable and placing it into a text file. Grateful for any help. Been trying something along the lines of: $variable > file.txt or `cat < $variable` > file.txt As you can see I'm a newbie to this ![]() |
|
||||
|
Code:
echo "$variable" > file.txt Unix Tutorials/Programming Tutorials/Shell Scripting Tutorials Regards |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|