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


Groups > linux.debian.user > #158100

bash script globbing

From rlharris@oplink.net
Newsgroups linux.debian.user
Subject bash script globbing
Date 2015-09-20 22:30 +0200
Message-ID <qaTpg-1Zo-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.user | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web