Re: [NTG-context] Is it possible to set the output file name in the script

2013-04-26 Thread Cecil Westerhof
2013/4/26 Peter Münster : > On Fri, Apr 26 2013, Cecil Westerhof wrote: > >> The following script does what I want: > > Or shorter: > > --8<---cut here---start->8--- > #!/usr/bin/env bash > context --result=cv-${1:-cecil} CV-Cecil-Westerhof > --8<---c

Re: [NTG-context] Is it possible to set the output file name in the script

2013-04-26 Thread Peter Münster
On Fri, Apr 26 2013, Cecil Westerhof wrote: > The following script does what I want: Or shorter: --8<---cut here---start->8--- #!/usr/bin/env bash context --result=cv-${1:-cecil} CV-Cecil-Westerhof --8<---cut here---end--->8

Re: [NTG-context] Is it possible to set the output file name in the script

2013-04-26 Thread Cecil Westerhof
2013/4/26 Cecil Westerhof : > The following script does what I want: > #!/usr/bin/env bash > > set -o errexit > set -o nounset > > declare -r DEFAULT=cecil > declare -r DIR=${HOME}/Documenten/CV > declare -r FILE=CV-Cecil-Westerhof > declare -r SCRIPTNAME=$(basename ${0}

Re: [NTG-context] Is it possible to set the output file name in the script

2013-04-26 Thread Cecil Westerhof
2013/4/26 Cecil Westerhof : > 2013/4/26 Hans Hagen : >> On 4/26/2013 7:01 PM, Cecil Westerhof wrote: >>> >>> 2013/4/26 Hans Hagen : On 4/26/2013 6:50 PM, Cecil Westerhof wrote: > > > 2013/4/26 Hans Hagen : >> >> >> On 4/26/2013 5:34 PM, Cecil Westerhof wrote: >

Re: [NTG-context] Is it possible to set the output file name in the script

2013-04-26 Thread Hans Hagen
On 4/26/2013 7:01 PM, Cecil Westerhof wrote: 2013/4/26 Hans Hagen : On 4/26/2013 6:50 PM, Cecil Westerhof wrote: 2013/4/26 Hans Hagen : On 4/26/2013 5:34 PM, Cecil Westerhof wrote: I am using a command line parameter to change the generated output. Is it also possible to set the output fi

Re: [NTG-context] Is it possible to set the output file name in the script

2013-04-26 Thread Cecil Westerhof
2013/4/26 Hans Hagen : > On 4/26/2013 6:50 PM, Cecil Westerhof wrote: >> >> 2013/4/26 Hans Hagen : >>> >>> On 4/26/2013 5:34 PM, Cecil Westerhof wrote: I am using a command line parameter to change the generated output. Is it also possible to set the output file name depending o

Re: [NTG-context] Is it possible to set the output file name in the script

2013-04-26 Thread Hans Hagen
On 4/26/2013 6:50 PM, Cecil Westerhof wrote: 2013/4/26 Hans Hagen : On 4/26/2013 5:34 PM, Cecil Westerhof wrote: I am using a command line parameter to change the generated output. Is it also possible to set the output file name depending on the parameter? --result=somename That is on the

Re: [NTG-context] Is it possible to set the output file name in the script

2013-04-26 Thread Cecil Westerhof
2013/4/26 Hans Hagen : > On 4/26/2013 5:34 PM, Cecil Westerhof wrote: >> >> I am using a command line parameter to change the generated output. Is >> it also possible to set the output file name depending on the >> parameter? > > > --result=somename That is on the command line. Then you need to gi

Re: [NTG-context] Is it possible to set the output file name in the script

2013-04-26 Thread Hans Hagen
On 4/26/2013 5:34 PM, Cecil Westerhof wrote: I am using a command line parameter to change the generated output. Is it also possible to set the output file name depending on the parameter? --result=somename -

[NTG-context] Is it possible to set the output file name in the script

2013-04-26 Thread Cecil Westerhof
I am using a command line parameter to change the generated output. Is it also possible to set the output file name depending on the parameter? -- Cecil Westerhof ___ If your question is of interest to others as well,