On Dec 18, 2009, at 23:02 , Scott Haneda wrote:
# make a copy of the file and also clear it cd /path/to/ cat running_log > stale_log && echo "" > running_log
mv running_log running_log.old && touch running_log && cat running_log.old >stale.log
-- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [email protected] system administrator [openafs,heimdal,too many hats] [email protected] electrical and computer engineering, carnegie mellon university KF8NH
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ macports-users mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
