I need to update my cpp source files header by adding extra one space before starting of the below lines in header information -
This file is an example header file.
There are 100 files are present with this formats.
Some files are with proper space before starting of each line in this paragraph.
How to move each line in this paragraph with single space at start using any script.
All above lines are fixed throughout all files.
Present Header format:
/*++++++++++++++++++++++++++++++ FileHeaderBegin +++++++++++++++++++++++++++++++
ALL INFORMATION ARE BELONGS TO ABCDEF
Copyright 2015 - 2020 ABCDEF LTD
All Rights Reserved
This file is an example header file.
There are 100 files are present with this formats.
Some files are with proper space before starting of each line in this paragraph.
How to move each line in this paragraph with single space at start using any script.
All above lines are fixed throughout all files.
*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*
* FILENAME: test.cpp
*
* DESCRIPTION: Sample file for command test
*
*++++++++++++++++++++++++++++++ FileHeaderEnd +++++++++++++++++++++++++++++++*/
Expected:
/*++++++++++++++++++++++++++++++ FileHeaderBegin +++++++++++++++++++++++++++++++
ALL INFORMATION ARE BELONGS TO ABCDEF
Copyright 2015 - 2020 ABCDEF LTD
All Rights Reserved
This file is an example header file.
There are 100 files are present with this formats.
Some files are with proper space before starting of each line in this paragraph.
How to move each line in this paragraph with single space at start using any script.
All above lines are fixed throughout all files.
*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*
* FILENAME: test.cpp
*
* DESCRIPTION: Sample file for command test
*
*++++++++++++++++++++++++++++++ FileHeaderEnd +++++++++++++++++++++++++++++++*/
Query: Is there any command or script available to do that changes. I have total 270 files with few files with proper space added and majority files with no space added.