by Delaware
March 3, 2010
Seen on Planet Debian: ‘Can you get cp to give a progress bar like wget?’ The solution starts:
#!/bin/sh
cp_p()
{
strace -q -ewrite cp -- "${1}" "${2}" 2>&1 \
...
The author notes in the comments:
If you feel the need to point out an alternative solution, then you have missed the entire point by a wide margin.
—lamby