Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #158100 > unrolled thread

bash script globbing

Started byrlharris@oplink.net
First post2015-09-20 22:30 +0200
Last post2015-09-20 22:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.debian.user


Contents

  bash script globbing rlharris@oplink.net - 2015-09-20 22:30 +0200

#158100 — bash script globbing

Fromrlharris@oplink.net
Date2015-09-20 22:30 +0200
Subjectbash script globbing
Message-ID<qaTpg-1Zo-5@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web