Date: Fri, 08 Sep 2006 15:10:20 +0200 From: Lasse Edlund <lassee@kth.se> To: freebsd-questions@freebsd.org Subject: How do I give 2 parameters to programs in an unix enviroment? Message-ID: <45016BBC.8080803@kth.se>
next in thread | raw e-mail | index | archive | help
If I have two files "foo" and "bar" and try to run diff on them I write: $diff foo bar I can also write $cat foo | diff - bar But how do I give a program two (2) commands? not only to diff but to any program that wants double input... I wanna do $cat foo | cat bar | diff - - especially with echo commands that would be handy so I dont have to create files!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45016BBC.8080803>