Re: Script question...

2004-01-12 Thread Charles Swiger
On Jan 12, 2004, at 6:04 PM, Xpression wrote: [ ...a question on how to change a shell script... ] Try: #! /bin/sh path=/some/dir if !([ -f $path/this.one ]); then touch $path/this.one for file in $path/file1 $path/file2 $path/file3; do echo "

Re: Script question...

2004-01-12 Thread Andrew L. Gould
On Monday 12 January 2004 05:04 pm, Xpression wrote: > Hi list, I've making a script to write the content of three text files to > one file, but I want to separate each files by a delimiter like the name of > the file. > > This is the script: > > #! /bin/sh > path=/some/dir > if !([ -f $path/this.o

Re: Script question...

2004-01-12 Thread Julien Gabel
> Hi list, I've making a script to write the content of three text files > to one file, but I want to separate each files by a delimiter like the > name of the file. Maybe this little sh(1) script can do the job: # = begin.script = #! /bin/sh path=