- To: slug <slug@xxxxxxxxxxx>
- Subject: Re: [SLUG] useful bash tricks thread
- From: Owen Townend <owen.townend@xxxxxxxxx>
- Date: Sat, 7 Feb 2009 22:02:11 +1100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=fxtXD+K6C4C+6XLjhlH7zHjDGf5VYDvaipnC12ixn+E=; b=UzG/BZmLO21j4VJyR3/QFydbyeXve+1xIFeg70GpVIGjGC9svqpF5hlRRwpSY9Jn2o w8aTrgR1MQsOpe6HNWWr60FaV8Sj+NIWu+oJFnAccfD4WlJSxXmgo14z8sG2k5dVqxaL xLXfOTQgAHGmazIH3LCv2xNd67cgaE8++9GvU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=nmsQn+LrxoycfLBTP+ayDYfMhVCMGRUmKOhGaRiP7tmWbEeb3+6wwaTUiAvlksZt7R aHvOTNgalqgKMLXdqP2+ZDODwaTKF1sIfHec4bdo4OhF1HNIWuthJw383gh01FNJjnwT xg9JmwITN3qcWBC2fWkfKnsEkUmhmzk+/KhRA=
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.