[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

bash script globbing



I have been using the following script (named "enscript+") as a substitute
for the package "a2ps":

    #!/bin/bash
    enscript --media=letter -2 --landscape --borders \
    --header='$n|A.D. $D{%Y.%m.%d}|$* gmt | Page $% of $=' "$1"

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
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



Reply to: