From owner-freebsd-questions@FreeBSD.ORG Mon Mar 11 14:05:10 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1C706FE for ; Mon, 11 Mar 2013 14:05:10 +0000 (UTC) (envelope-from richard@inf.ed.ac.uk) Received: from treacle.ucs.ed.ac.uk (treacle.ucs.ed.ac.uk [129.215.16.102]) by mx1.freebsd.org (Postfix) with ESMTP id A78C23E7 for ; Mon, 11 Mar 2013 14:05:09 +0000 (UTC) Received: from nutty.inf.ed.ac.uk (nutty.inf.ed.ac.uk [129.215.33.33]) by treacle.ucs.ed.ac.uk (8.13.8/8.13.4) with ESMTP id r2BDQwtO010985; Mon, 11 Mar 2013 13:26:58 GMT Received: from macavity.inf.ed.ac.uk (macavity.inf.ed.ac.uk [129.215.197.221]) by nutty.inf.ed.ac.uk (8.13.8/8.13.8) with ESMTP id r2BDQvAA017651; Mon, 11 Mar 2013 13:26:57 GMT Received: by macavity.inf.ed.ac.uk (Postfix, from userid 26013) id ECD016D0DB9; Mon, 11 Mar 2013 13:26:57 +0000 (GMT) From: Richard Tobin Subject: Re: How to know % of read file in cat? To: Eduardo Morras , freebsd-questions@freebsd.org In-Reply-To: Eduardo Morras's message of Sat, 9 Mar 2013 10:54:00 +0100 X-Mailer: Ream 5.1.51-richard-mac Message-Id: <20130311132657.ECD016D0DB9@macavity.inf.ed.ac.uk> Date: Mon, 11 Mar 2013 13:26:57 +0000 (GMT) X-Edinburgh-Scanned: at treacle.ucs.ed.ac.uk with MIMEDefang 2.60, Sophie, Sophos Anti-Virus, Clam AntiVirus Content-Type: text/plain MIME-Version: 1.0 Content-Disposition: inline X-Scanned-By: MIMEDefang 2.60 on 129.215.16.102 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Mar 2013 14:05:10 -0000 > I use cat to read a file and pass it to another app, the command is this: > > camibar% cat file.git | fossil import --git file.fossil > > It takes a lot of time, file.git is 12GB, and i want to know if > there's some 'magic' trick can I use to show me how many bytes or > the % of the file.git cat sent to the other app. Use dd (see man page) instead of cat, and control-T will show you how much it has transferred. -- Richard -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.