Looking for Shell Script to find '.txt', '.csv' files from many recursive folders/subfolders, copy the files and recreate the same folders path to copy those files in new path.
Example: we got around 20k files and saved in many parent folders and subfolders.
Source:
u01/temp/proj/sales/john/.csv, .xls files
u01/temp/proj/sales/mike/.txt, .csv, .xls files
u01/temp/proj/sales/geebee/sale/.csv, .xls files
need shell script to copy only '.txt', '.csv' files(exclude xls , other files) and recreate same folder path then copy above files as below
u01/perm/proj/sales/john/.csv files
u01/perm/proj/sales/mike/.txt, .csv files
u01/perm/proj/sales/geebee/sale/.csv files
thank you.
rsync
, you will be a lot happier than trying to do it by yourself in a script.