I know vi and a bit of Perl and a bit of regex. I would like to use then to solve my problem.
I want to edit my program files in vi. There are lines like:
// major change history
// 06/08/00 jhs initial creation
// 12/22/05 gam formatting
I would like it to read:
// major change history
// 2000-06-08 jhs initial creation
// 2005-12-22 gam formatting
Is there a way to quickly do this in vi? My dream solution is to use vi to call a Perl script using regex to solve this.
Start Free Trial