I am having basic knowledge in Linux and need your help to develop concept for following requirement. I have two files FILE_NAMES.txt and FILE_NAMES_TS.txt. The content of files as below.
FILE_NAMES.txt
====
jan_
feb_
mar_
FILE_NAMES_TS.txt
====
jan_20170921.csv
feb_20170921.csv
mar_20170921.csv
All the above content are nothing but file names and are placed in db_views/data directory. For the content of FILE_NAMES_TS.txt
are 0 bytes initially. Now have to move / rename from jan_
to jan_20170921.csv
, and so on. That means the file jan_20170921.txt
is now non-zero bytes. Please help.