OT: cat and tail

Brandon Allbery allbery at kf8nh.com
Fri Dec 18 20:08:39 PST 2009


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] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20091218/128d644d/attachment.bin>


More information about the macports-users mailing list