Have two dir's Dir_A and Dir_B
===Directory A has the below files
ora/spp/abc.sps
ora/sql/acbef.sql
ora/tyb/ty/file_3.ty
====Text file(list.txt) has something like (name of files in Dir_A)
abc.sps
file_3.ty
Shell Script that will delete all of the files in Dir_A except the ones in the list.txt
Parameters to the shell script
Parameter 1: Path to list.txt file with list of file names
Parameter 2: Path to top level directory(Dir_A) where the files exist.
Call to the script :
Test_parse.sh path/to/Dir_A path/to/list.txt
The above script should delete all of the scripts in Dir_A except the ones in the list.txt and
Copy the all the Contents to Dir_B
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.