Re: feature request: option to start script not from the very beginning
From:
Stephane CHAZELAS
Subject:
Re: feature request: option to start script not from the very beginning of file
Date:
Tue, 2 Aug 2011 14:55:32 +0100
User-agent:
slrn/pre1.0.0-18 (Linux)
2011-08-02, 17:05(+04), Dmitry Bolshakov:
[...]
> perl has "-x" switch which makes it skip leading file contents until the
> #!/bin/perl
> line
>
> imho it would be good to have the same feature in bash
What about:
#! /bin/bash -
:||:<<\#__END__
whatever you like here
#__END__
your script starts here
--
Stephane