openejb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacek Laskowski <ja...@laskowski.net.pl>
Subject Re: svn commit: r779793 - in /openejb: branches/openejb-3.1.1/ tags/openejb-3.1.1/
Date Fri, 29 May 2009 12:52:20 GMT
On Fri, May 29, 2009 at 10:51 AM, David Blevins <david.blevins@visi.com> 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.

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

jacek@dev ~
$ cat $LOG
ala
ma
kota

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

Jacek

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

Mime
View raw message