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

> 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.
>

Not new at all. Note that it can fail with zsh if MULTIOS enabled, though
(in that case, zsh assumes you want to run "cat" and it will read from the
terminal).

-- 
brandon s allbery kf8nh                               sine nomine associates
allber...@gmail.com                                  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
_______________________________________________
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