From owner-freebsd-questions@FreeBSD.ORG Tue Feb 2 13:02:26 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7BB661065718 for ; Tue, 2 Feb 2010 13:02:26 +0000 (UTC) (envelope-from miklosovic.freebsd@gmail.com) Received: from mail-fx0-f226.google.com (mail-fx0-f226.google.com [209.85.220.226]) by mx1.freebsd.org (Postfix) with ESMTP id 151338FC12 for ; Tue, 2 Feb 2010 13:02:25 +0000 (UTC) Received: by fxm26 with SMTP id 26so9512fxm.13 for ; Tue, 02 Feb 2010 05:02:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=ETmnFIVBXy+kXWb94rNoXdOzPjFz41HY51gomJwcC18=; b=c/2/pyJpZS/fi/vv+domltfWhWzrRv3iaeYNPO3WOFCWCfFKxfzGy0Iq1fz+D7IxB4 bnGUCsZNAVPiUwBXHHIqYAskX0IF6r/YK4X++Ji+eFmtHg12Zie/dalRtEoOkKBSlKYi OaxkSxEbekyCJrALF1SwaciJu8qK8pmkR8ACc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Zo2U5hR5oag7ErssiWV8dQAgyYxojEPdoQoGzcL8iKkrjYYQ3rEnjXrVPfKBnduCIS lZ6KDlzouOQcFgdlWZ/ulS97kcnp2c5V9zTgcPqt1Ewneb0rqw9HYSeLtZilIeYgWS35 AmedHx6LohodUXUAerpYmvaM8WQKgFijV1lBc= MIME-Version: 1.0 Received: by 10.102.169.3 with SMTP id r3mr3606554mue.78.1265115744735; Tue, 02 Feb 2010 05:02:24 -0800 (PST) Date: Tue, 2 Feb 2010 14:02:24 +0100 Message-ID: From: Stefan Miklosovic To: freebsd-questions Content-Type: text/plain; charset=ISO-8859-1 Subject: shell redirection X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Feb 2010 13:02:26 -0000 hi I have a shell script and I would like to do something like this $ ./script.sh < somefile After that, I can, just say, write content of that file on the screen. I would like to know, how to do that in script, I dont know that tricky redirection things ... thanks a lot