From owner-freebsd-questions@FreeBSD.ORG Fri Sep 8 13:10:27 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E96816A4DD for ; Fri, 8 Sep 2006 13:10:27 +0000 (UTC) (envelope-from lassee@kth.se) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 644D043D62 for ; Fri, 8 Sep 2006 13:10:25 +0000 (GMT) (envelope-from lassee@kth.se) X-T2-Posting-ID: mXCZg4px3MfsRJ0lniN8dw== X-Cloudmark-Score: 0.000000 [] Received: from [213.100.59.183] ([213.100.59.183] verified) by mailfe07.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 276250105 for freebsd-questions@freebsd.org; Fri, 08 Sep 2006 15:10:22 +0200 Message-ID: <45016BBC.8080803@kth.se> Date: Fri, 08 Sep 2006 15:10:20 +0200 From: Lasse Edlund User-Agent: Thunderbird 1.5 (X11/20060317) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: How do I give 2 parameters to programs in an unix enviroment? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lassee@kth.se List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Sep 2006 13:10:27 -0000 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!