Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #158100 > unrolled thread
| Started by | rlharris@oplink.net |
|---|---|
| First post | 2015-09-20 22:30 +0200 |
| Last post | 2015-09-20 22:30 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.debian.user
bash script globbing rlharris@oplink.net - 2015-09-20 22:30 +0200
| From | rlharris@oplink.net |
|---|---|
| Date | 2015-09-20 22:30 +0200 |
| Subject | bash 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
Back to top | Article view | linux.debian.user
csiph-web