Jan 24 2008

Clever cp enhancement

Published by Brian at 8:35 am under Linux, Scripting

A clever fellow I ran across used a dash of strace folded in with some shell functionality to give the ubiquitous `cp’ command a wget-like progress bar:

% cp_p /mnt/raid/pub/iso/debian/debian-2.2r4potato-i386-netinst.iso > /dev/null 

76% [===========================================>                ]

Granted, you could probably do the same with a few pipes and `pv‘, but this gets a medal for cleverness!

Full blog post here.

No responses yet

Trackback URI | Comments RSS

Leave a Reply