Like to have shell script to Read the given file contents into a merged one file with header of path+file name followed by file contents into a single output file.
While reading and merging the file contents into a single file, Like to keep the format of the source file.
/app/oracle/build_lib/wrkfldr952.0_20150614/ddl/alter_modify_keg.sql
/app/oracle/build_lib/wrkfldr952.0_20150614/ddl/alter_modify_kim.sql
/app/oracle/build_lib/wrkfldr952.0_20150614/ddl/client_cmpmadr1.sql
/app/oracle/build_lib/wrkfldr952.0_20150614/ddl/client_cmpmaur1.sql
/app/oracle/build_lib/wrkfldr952.0_20150628/ddl/alter_modify_keg.sql
/app/oracle/build_lib/wrkfldr952.0_20150628/ddl/alter_modify_kim.sql
------ Sample Output ----
- Reading the file# /app/oracle/build_lib/wrkfldr952.0_20150614/ddl/alter_modify_keg.sql
aaa
aaa
aa
- Reading the file# /app/oracle/build_lib/wrkfldr952.0_20150614/ddl/alter_modify_kim.sql
bbbbbbbbb
#sssss tttt 523
Thanks, Siva SQL