![]() |
|
|
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 |
| Creating an sql statement from a file. Problem with ' | hannem | Shell Programming and Scripting | 2 | 04-24-2008 09:26 AM |
| Problem while creating "trailer" | lokiman | Shell Programming and Scripting | 6 | 02-12-2008 12:31 PM |
| Problem with creating big files | eliraza6 | Linux | 6 | 11-06-2007 09:54 AM |
| Problem creating files greater than 2GB | bobbyjohnz | UNIX for Advanced & Expert Users | 1 | 01-17-2007 12:19 PM |
| problem in creating executable for a client program | konas | High Level Programming | 2 | 11-17-2006 02:09 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
EOF creating problem
In shell file, i am writing following statement:
cat > File1.sh <<EOF set feedback off set serveroutput on cat > File2.sh <<EOF contents of second file EOF Contents of First file EOF Actually, i want these bolded statements in File1.sh as it. But after first EOF, contents are not written in Firle1.sh any more. Is there any solution ? |
|
||||
|
Hi, Since you have two labels(here document), both named as EOF it will create some problem. Try the below, Code:
cat > File1.sh <<EOA set feedback off set serveroutput on cat > File2.sh <<EOF contents of second file EOF Contents of First file EOA I don't really understand your actual scenario. I hope the above may help. Regards, Chella |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|