Re: bash script globbing

2015-09-20 Thread rlharris
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

Re: bash script globbing

2015-09-20 Thread Thomas Schmitt
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

Re: bash script globbing

2015-09-20 Thread Loïc Grenié
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

bash script globbing

2015-09-20 Thread rlharris
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