![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| merge multi-lines into one line | missyou | Shell Programming and Scripting | 3 | 12-18-2008 03:38 AM |
| How to print number of lines with awk ? | maheshsri | Shell Programming and Scripting | 1 | 11-18-2005 02:19 AM |
| Can there be multi-dimensional variable arrays in borne shell? | jparker | Shell Programming and Scripting | 4 | 05-15-2002 04:47 PM |
| print adjacent lines | apalex | UNIX for Dummies Questions & Answers | 1 | 04-29-2002 11:59 AM |
| How to print multi page to one for pdf in unix?? | sunartio | UNIX for Dummies Questions & Answers | 2 | 09-13-2001 08:43 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
hi im trying a make simple html page with the content of some files
i have: title=`cat "file1"` heading=`cat "file2"` para=`cat "file3"` block=`cat "/file4"` cat > ./page.html <<-EOF <html> <head> <title>$title</title> </head> <body> <h1>$heading</h1> <p>$para</p> <blockquote>$block</blockquote> </body> </html> EOF lets say file2 contains: 222 222 and file3 contains: 333 333 my script will only give me a html page with variables printed in single lines like: 222 222 333 333 the result i want should be: 222 222 333 333 sorry about the bad english and poor explaination, please help me ![]() thank you |
|
||||
|
Thank you very much Goldorakk
that worked though i only used: heading=`sed 's/$/<br \/>/' file2` |
| Sponsored Links | ||
|
|