In VMS DCL one may embed data in a command file using $DECK and $EOD. What is Linux for this?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
migrated from stackoverflow.com Feb 12 '11 at 20:23
|
You can embed data within shell scripts. How this works is shell dependent. However bash/perl etc. do this in similar ways, using a heredoc. e.g. in bash (and similar):
will write as input a,b,c up to the EOF, and then |
|||
|
|
|
Loki also made a tool called makeself. This tool can embed compressed data in a shell file and is useful for self-extracting installation scripts. |
|||
|
|