Re: a command with a long list of options

2015-09-16 Thread Thomas Schmitt
Hi, > I write and use bash scripts almost daily, I did not know that you were tired and thus did not come to the idea of a script yourself. So you got the mini starter for scripters. My programs are similarly unusable as enscript if one does not develop their serious jobs in scripts. > The only

Re: a command with a long list of options

2015-09-16 Thread rlharris
On Wed, September 16, 2015 1:24 am, Thomas Schmitt wrote: ... > #!/bin/bash ... > enscript --verbose --media=letter -2 --landscape --borders \ > --header='$n|A.D. $D{%Y.%m.%d}|$* gmt | Page $% of $=' \ > "$1" ... > echo $PATH That works! I thank you for taking the trouble to write up a detailed p

Re: a command with a long list of options

2015-09-16 Thread rlharris
On Wed, September 16, 2015 1:59 am, Dr. Volker Thieme wrote: > The file is ~/.enscriptrc without a dot.. :-) Forgive me; I typed ".enscriptrc" correctly for the file, but I mis-typed ".enscript.rc" for the email. But I do appreciate your attention to detail. RLH

Re: a command with a long list of options

2015-09-16 Thread Dr. Volker Thieme
The file is ~/.enscriptrc without a dot.. :-) Regards! > On 16 Sep 2015, at 08:49, rlhar...@oplink.net wrote: > > On Wed, September 16, 2015 1:26 am, Dr. Volker Thieme wrote: >> Enscript reads configuration information from the following sources (in >> this order): command line options, e

Re: a command with a long list of options

2015-09-15 Thread rlharris
On Wed, September 16, 2015 1:33 am, p...@aztec.co.za wrote: > Bleh, try to enclose the $@ at end of line with quotes, ie. > > "$@" > > Also, you don't need to restart the machine. You can reread the .bashrc > file with: > > . ~/.bashrc So I did, but I get the error message: $ enscript howto.ensc

Re: a command with a long list of options

2015-09-15 Thread rlharris
On Wed, September 16, 2015 1:26 am, Dr. Volker Thieme wrote: > Enscript reads configuration information from the following sources (in > this order): command line options, environment variable ENSCRIPT, > user's personal configuration file ($HOME/.enscriptrc), site > configuration file (/etc/en

Re: a command with a long list of options

2015-09-15 Thread Dr. Volker Thieme
CONFIGURATION FILES Enscript reads configuration information from the following sources (in this order): command line options, environment variable ENSCRIPT, user's personal configuration file ($HOME/.enscriptrc), site configuration file (/etc/enscriptsite.cfg) and system

Re: a command with a long list of options

2015-09-15 Thread Thomas Schmitt
Hi, rlhar...@oplink.net wrote: > enscript --verbose --media=letter -2 --landscape --borders --header='$n|A.D. > $D{%Y.%m.%d}|$* gmt | Page $% of $=' filename > ... > can I define in bash an alias or something The job is somewhat too big for a bash alias. But there is the old concept of a shell s

Re: a command with a long list of options

2015-09-15 Thread rlharris
On Wed, September 16, 2015 12:33 am, p...@aztec.co.za wrote: > enscript() { command enscript --verbose --media=letter -2 --landscape > --borders --header='$n|A.D. $D{%Y.%m.%d}|$* gmt | Page $% of $=' $@ > } I cut and pasted the above definition into ~/.bashrc and then restarted the machine to ensu

a command with a long list of options

2015-09-15 Thread rlharris
Now that I have switched from a2ps to enscript, I need to execute the following command on various files: enscript --verbose --media=letter -2 --landscape --borders --header='$n|A.D. $D{%Y.%m.%d}|$* gmt | Page $% of $=' filename I tried putting these parameters in the enscript configuration file