On Fri, Mar 13, 2015 at 1:54 PM, Yves Dorfsman <y...@zioup.com> wrote:

>
> For the past 25 years or so, I've always used:
>
>     cat /dev/null >/path/to/filename
>
> to empty a file. Somebody just showed me:
>
>     >/path/to/filename
>
> Is this "new"? I've never seen it before (and I've worked with quite a few
> sysadmins and devs)... Is this bash vs other shells? I feel weird not
> knowing
> this.


See also "useless use of cat" (UUOC) and the UUOC award
<http://www.smallo.ruhr.de/award.html#cat>.

Yours,
John B.
-- 
John Borwick
University Libraries IT Services Director
Virginia Tech
_______________________________________________
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/

Reply via email to