
25 Feb
2014
25 Feb
'14
9:55 a.m.
On Tue, 25 Feb 2014 15:09:34 +1300, Ian Stewart wrote:
http://www.wlug.org.nz/blog/view/3709/review-of-a-bash-command-file
Just a couple of thoughts: * Instead of echo line1 >file echo line2 >>file echo line3 >>file ...etc... How about { echo line1 echo line2 echo line3 ...etc... } >file * It’s easy to fix handling of the case where the output path might contain spaces: just put some double quotes in the right places.