Beautify command line CVS output with perl
Here’s a couple of little perl scripts I use on a day to day basis, they simply beautify the output of command line CVS client program. I’m not a perl programmer so I’m sure there are much better ways of doing this, any suggestions are welcome. I also haven’t tested either of them on anything but cygwin/winXP, cvs 1.11.17 and perl 5.8.7.
file: cvs-update
This little script simply takes the output from cvs update and removes most of the useless information and colours the remaining output, leaving something like this.U docs/README P docs/INSTALLM M docs/FAQ C docs/TODO
file: cvs-editors
This script takes the output of cvs editors and formats the output neatly in an ascii table, like this.+--------------+---------+--------------------------+---------+ | File | User | Date | Host | +--------------+---------+--------------------------+---------+ | docs/README | davem | Mon Aug 14 10:04:56 2006 | lando | +--------------+---------+--------------------------+---------+ | docs/FAQ | davem | Mon Jul 31 14:38:12 2006 | lando | +--------------+---------+--------------------------+---------+ | docs/TODO | davem | Mon Jul 31 14:34:56 2006 | lando | +--------------+---------+--------------------------+---------+ | docs/INSTALL | davem | Mon Jul 31 14:04:31 2006 | hansolo | +--------------+---------+--------------------------+---------+
About
Dave Marshall is a Software Engineer living near Hull, England. He works on various personal projects and is the Technical Manager at Childcare.co.uk
Dave specialises in web application development for the LAMP stack, but always tries to choose a tool set that is most fit for purpose.
Dave is a Zend Certified Engineer and a Member of the British Computer Soceity.