On Fri, May 29, 2009 at 10:51 AM, David Blevins <[email protected]> wrote:

> I made a script as I can never remember the command syntax.
>
> Here you go:   http://people.apache.org/~dblevins/svnmerge

Ah, nice. I'd spice it up a bit. What is "cat /dev/null > $LOG" for?
Is it "touch $LOG"? I'd remove it altogether and the echo's too. It
could be done with heredoc [1], e.g.

ja...@dev ~
$ cat >> $LOG << EOF
> ala
> ma
> kota
> EOF

ja...@dev ~
$ cat $LOG
ala
ma
kota

[1] http://en.wikipedia.org/wiki/Heredoc

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl

Reply via email to