I have a .csv source file with the below data as an example that has the path of the file to process
Name: files_to_process.csv
FILE_PATH,FILE_NAME
/fts02/network/inbound/flight_route.txt
/fts02/network/inbound/flight_text.txt
I need to create an o.p file using files_to_process.csv as source and create below. I need to additional column to each row except the header. the new column will be the file name coming from absolute path.
required o.p
FILE_PATH,FILE_NAME
/fts02/network/inbound/flight_route.txt,**flight_route.txt** /fts02/network/inbound/flight_text.txt,**flight_text.txt**
Any help?