Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] useful bash tricks thread


2009/2/6 Tony Sceats <tony@xxxxxxxxxxx>:
> It's been a while since there's been a thread like this, so I thought it
> would be fun :)
>
> so, have you got any?
>

Really quick, basic one that most know, but is handy:
Instead of redirecting output to /dev/null simply use '&-' to close the stream.
e.g.
$ find . 2>&-

cheers,
Owen.