pipe equivalent to /dev/null ???

Randal Schwartz merlyn at iwarp.intel.com
Wed Sep 12 06:13:16 AEST 1990


In article <8720002 at hpdmd48.boi.hp.com>, oscarh at hpdmd48 (Oscar Herrera) writes:
| ||Is there an equivalent 'pipe' like entity to /dev/null ?
| ||What I'd like to do is something like this 
| ||	anycommand | bitbucket
| ||
| ||Oscar Herrera
| ||----------
| 
| 	Well, I found the answer to my own question.
| 
| 		touch bitbucket
| 		chmod +x bitbucket
| 
| 	Then    
| 		ll | bitbucket      
| 
| 	works well.

Until the ll output pipe fills up.

My first suggestion is "why?"  For example, if I wanted the ll
output to go nowhere, I would type:

	ll >/dev/null

Second, if you *really* need a process, use

	cat >/dev/null

as in:

	ll | cat >/dev/null

yucky yucky kludge.  But it fits your requested parameters.

Just another Unix hacker,
-- 
/=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\
| on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III      |
| merlyn at iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
\=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/



More information about the Comp.unix.shell mailing list