Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2008-11-22 23:35:38
Size: 598
Editor: GreyCat
Comment: first-line
Revision 5 as of 2009-07-15 18:37:02
Size: 52
Editor: GreyCat
Comment: This one has been merged into 044 and is now available.
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
== How can I see a progress bar when copying/moving files? ==
You can't with `cp(1)`, but you can either:

 * build one yourself with tools such as [[http://www.ivarch.com/programs/pv.shtml|pv]] or [[http://clpbar.sourceforge.net/|clpbar]];
 * use some other tool, e.g. [[http://members.iinet.net.au/~lynx/vcp/|vcp]].

You may want to use pv(1) since it's packaged for many systems. In that case, it's convenient if you create a function or script to wrap it.

For example:

{{{
pv "$1" > "$2/${1##*/}"
}}}

This lacks error checking and support for moving files.
== Placeholder ==
Placeholder.

Placeholder

Placeholder.

BashFAQ/093 (last edited 2016-10-22 16:49:46 by politkovskaja)