On Sun, September 20, 2015 3:28 pm, Loïc Grenié wrote:
...
>> #!/bin/bash
>> enscript --media=letter -2 --landscape --borders \ --header='$n|A.D.
>> $D{%Y.%m.%d}|$* gmt | Page $% of $=' "$1"
...
> Here "$1" means "for the first argument"
> If enscript can work with several files together, you cn
Hi,
rlhar...@oplink.net wrote:
> enscript --media=letter -2 --landscape --borders \
> --header='$n|A.D. $D{%Y.%m.%d}|$* gmt | Page $% of $=' "$1"
> ...
> when I execute
>enscript+ *
> in a directory containing several files, enscript prints only the first
> file in the directory.
This
for f in "$@"
do
done
Hope this helps.
Loïc
> The script works properly for a single file:
>
> enscript+ filename
>
> But when I execute
>
> enscript+ *
>
> in a directory containing several files, enscript prints only the first
roperly for a single file:
enscript+ filename
But when I execute
enscript+ *
in a directory containing several files, enscript prints only the first
file in the directory.
I googled "bash script globbing", but the discussions which I found are
deep and confusing. Is there not a simple solution?
RLH
4 matches
Mail list logo