Date: Tue, 17 Dec 2002 15:14:49 -0500 From: Edmond Baroud <SoHo@admin.fido.ca> To: pura life CR <puralifecr@hotmail.com> Cc: FreeBSD-questions@FreeBSD.ORG Subject: Re: stderr redirection Message-ID: <20021217201449.GA38112@admin.fido.ca> In-Reply-To: <F92hUOEO5EivEjeAGVk00004dba@hotmail.com> References: <F92hUOEO5EivEjeAGVk00004dba@hotmail.com>
index | next in thread | previous in thread | raw e-mail
dude, in = 0 out = 1 err = 2 and by putting >2 in after your grep foo command your redirecting your stdout to a file called 2. to redirect stderr to /dev/null u can do: %du -a / | grep foo 2>/dev/null regards, Ed. Quoting pura life CR (puralifecr@hotmail.com): > (1) Hi, I would like to know how can I redirect stdin, stdout and/or stderr > from an interactive shell? > > (2) I am confused, it's smthg like %du -a / | grep foo >2 /dev/null ? > In this case, I am looking for certain files and I dont want to view > annonying message such as "permised denied" so the goal is redirect stderr > to /dev/null, howto??. > > > regards, > > > > > _________________________________________________________________ > Únete al mayor servicio mundial de correo electrónico: > http://www.hotmail.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Edmond Baroud UNIX Systems Admin mailto:SoHo@admin.fido.ca Fingerprint 140F 5FD5 3FDD 45D9 226D 9602 8C3D EAFB 4E19 BEF9 "UNIX is very user friendly, it's just picky about who its friends are." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the messagehelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021217201449.GA38112>
