Dexter Filmore wrote:
> Since cp won't tell me about progress or txfer speed I hacked up this little
> script I called ddcp:
rsync already does this:
$ rsync -vP /home/user/BIGFILE /var/www/user/
83329024 45% 79.44MB/s 0:00:01
182112256 100% 80.24MB/s 0:00:02 (1, 100.0% of 1)
sent 182134585 bytes received 40 bytes 52038464.29 bytes/sec
total size is 182112256 speedup is 1.00
To answer the bourne shell scripting question: put soft quotes around
*every* instance of a shell variable being used.
for i in "$@"; do dd if="$i" of="$DEST"; done
-john
Alternatively, use zsh which does not automatically split variables on
whitespace to begin with.
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list