![]() |
|
|
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 |
| writing to a csv file | pstanand | Shell Programming and Scripting | 6 | 03-27-2008 06:47 AM |
| Writing to a File using pl/sql | stky13 | High Level Programming | 1 | 02-22-2008 08:45 AM |
| Reading a file and writing the file name to a param file. | thebeginer | UNIX for Advanced & Expert Users | 1 | 10-05-2007 05:38 PM |
| writing to a file using awk | gfhgfnhhn | Shell Programming and Scripting | 7 | 09-15-2006 10:52 AM |
| Writing to another file | dreams5617 | Shell Programming and Scripting | 3 | 07-05-2006 02:39 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Writing to a file in different way
HI all,
If I have 3 lines in variables such as follows x=Unix Forum y=Interactive Forum z=Unix Forum is Best Forum Now I want to write these 3 lines in a file so that that file will look like Unix Forum Interactive Forum Unix Forum is Best Forum How can I do it ? -------------------------------------- Presently I am writing to it as follows $x $y $z > a.out But it shows all 3 lines in a single line... Thanks.....In Advance |
|
||||
|
$ x="mah"
$ y="abc" $ z="123" $ echo "$x\n$y\n$z" > a.out $ more a.out mah abc 123 I guess you are trying to do something else other than what you have mentioned above... can you post your full script here and the output |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|