
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] Bourne / bash problem
Bruno Raoult <braoult@example.com> wrote:
>
> I am writing some script, with commands like ffmpeg, handbrake,
> or some video editing commands. They all take zillion of parameters,
How about something like this?
# comment
options=--option1
# comment
options+=\ --option2
# comment
options+=\ --option3
# here goes the command
command $options
Though this may get a bit tricky if your options include shell
metacharacters or significant whitespaces, then you'll have to
escape them correctly.
--
Stephen Lee <sl-tlug@example.com>
Home |
Main Index |
Thread Index