tag:blogger.com,1999:blog-3303182477271175463.post2285307225774344543..comments2023-07-13T07:41:00.144+12:00Comments on Got Ravings?: Colorizing and autopaging svn diffs and other commandsDr Foobariohttp://www.blogger.com/profile/17261969811711468642noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-3303182477271175463.post-44640477047539976912013-04-17T22:39:58.037+12:002013-04-17T22:39:58.037+12:00After loading your function, if you redirect the o...After loading your function, if you redirect the output of the svn command, the output gets corrupted. To prevent it, you sould change add this to the beginning of the svn function:<br /><br /><br /> if [ $# -lt 1 -o ! -t 1 ]; then<br /> command svn "$@"<br /> return<br /> fi<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3303182477271175463.post-62505147684701727112012-09-07T09:15:28.762+12:002012-09-07T09:15:28.762+12:00I always like to use tr instead of sed for deletin...I always like to use tr instead of sed for deleting characters. Not that it makes much difference, but it's definitely faster. WORDS.CR is a file with 197138 lines ending in '\r'.<br /><br />~$time sed -e 's/\r//g' < WORDS.CR > /dev/null <br /><br />real 0m0.087s<br />user 0m0.080s<br />sys 0m0.008s<br /><br />~$time tr -d '\r' < WORDS.CR > /devAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3303182477271175463.post-4308456079194993722010-10-15T00:00:53.987+13:002010-10-15T00:00:53.987+13:00Hi!
Thanks for dropping that comment in my sed-to...Hi!<br /><br />Thanks for dropping that comment in my sed-to-color post, I will use it next time I use sed for something (I'm not using gcal ATM, but probably will do it any time soon, it is just too practical now I have DropBox ;)<br /><br />I loved this post, btw, in particular your 'love for colour'. Still smiling :D And the Tentacles... Terrific. I usually use RCS for personal Ruben Berenguelhttps://www.blogger.com/profile/05271991635456932663noreply@blogger.com