Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uwmcsd1!marque!uunet!mcvax!ukc!dcl-cs!nott-cs!anw
From: anw@nott-cs.UUCP
Newsgroups: comp.unix.questions
Subject: Re: more unix jokes - /dev/null
Keywords: poor man's Unix
Message-ID: <581@tuck.nott-cs.UUCP>
Date: 23 Sep 88 14:43:38 GMT
References: <8488@smoke.ARPA> <26090@ucbvax.BERKELEY.EDU> <1049@sybase.sybase.com> <1414@star.cs.vu.nl>
Reply-To: anw@maths.nott.ac.uk (Dr A. N. Walker)
Organization: Department of Mathematics, The University, NOTTINGHAM, NG7 2RD, UK.
Lines: 18

In article <1414@star.cs.vu.nl> maart@cs.vu.nl (Maarten Litmaath) writes:
> [ how to simulate ]
>	command > /dev/null
> [ without using /dev/null ? ]

	Silly season strikes again?  But there are many near-solutions:

		command | grep -v ''	# or adjust flags as necessary
		command | tail -0	# or use sed or awk or ...
		command | tr -cds ''
		command | [ ]
		command |		# if at end of script

each of which is deficient in ways I'll leave others to find and correct.

-- 
Andy Walker, Maths Dept., Nott'm Univ., UK.
anw@maths.nott.ac.uk