Not so long ago, allber...@gmail.com wrote: > On Fri, Mar 13, 2015 at 8:12 PM, Paul Graydon <p...@paulgraydon.co.uk> > wrote: > > > I've always done: > > echo > /path/to/filename > > > > That one's actually a bit unsafe because it writes a newline to the file. > And csh behaves differently from sh. (And then we get into, if you want to > suppress the newline, how different echo implementations do so.)
I've usually used $ cp /dev/null /path/to/filename but just might start using $ : > /path/to/filename hadn't thought of that before -- never liked redirection as the first character of a command. On a mac, the cp takes way longer to run ubik:~ jolomo$ time : > /var/tmp/00 real 0m0.000s user 0m0.000s sys 0m0.000s ubik:~ jolomo$ time cp /dev/null /var/tmp/01 real 0m0.005s user 0m0.001s sys 0m0.004s And I'm in a hurry!! -- Joe Morris Atlanta history blog j...@jolomo.net http://atlhistory.com _______________________________________________ Tech mailing list Tech@lists.lopsa.org https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech This list provided by the League of Professional System Administrators http://lopsa.org/