Date: Sat, 9 Mar 2013 11:11:26 +0100 From: Matthias Apitz <guru@unixarea.de> To: Eduardo Morras <emorrasg@yahoo.es> Cc: freebsd-questions@freebsd.org Subject: Re: How to know % of read file in cat? Message-ID: <20130309101126.GA2609@tinyCurrent> In-Reply-To: <20130309105400.b181e12aa222502974715a1b@yahoo.es> References: <20130309105400.b181e12aa222502974715a1b@yahoo.es>
next in thread | previous in thread | raw e-mail | index | archive | help
El día Saturday, March 09, 2013 a las 10:54:00AM +0100, Eduardo Morras escribió: > > Hello, > > 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. > > Maybe cat isn't the correct tool? Yes, in your case cat(1) is superflues (see also the Useless Use of Cat Award) because the correct way would be: camibar% fossil import --git file.fossil < file.git It depends of the tool 'fossil' if you can monitor somehow the progress, for example if it writes a log or with accounting tools how many bytes have been read, etc. HIH matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: www.asciiribbon.org E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130309101126.GA2609>