Tips to modify an autogenerated ics file with the Vim text editor.
%s/\/\?\(INGE_\)\?EI_[A-Z0-9_]*,\? \/\? \?//g
%s/\n - DESCRIPTION : \(.*\)$/\1/
Vim command : :%s/\\n//g
Before :
SUMMARY:TP - CCUBE - C000\n
After :
SUMMARY:TP - CCUBE - C000
Vim command : :%s/ - \(.*\) \?\(-\?\) \?/,\1\2/g
Before :
SUMMARY:TP - CCUBE - C000
SUMMARY:CM - CCUBE
After :
SUMMARY:TP,CCUBE - C000
SUMMARY:CM,CCUBE
Vim command : %s/ - .*$//
Before :
SUMMARY:TP,CCUBE - C000
SUMMARY:CM,CCUBE
After :
SUMMARY:TP,CCUBE
SUMMARY:CM,CCUBE
Vim command : :%s/S[0-9]\+//
Before :
SUMMARY:TD,EPSS79
SUMMARY:TD,ALLS7
After :
SUMMARY:TD,EPS
SUMMARY:TD,ALL
Vim command : %s/SUMMARY:\(.*\),\(.*\)/SUMMARY:\2,\1/
Before :
SUMMARY:TD,EPS
After :
SUMMARY:EPS,TD
%s/:,/:/g