Social Question
How to fetch files' extension from a variable which contains files & folder list in bash script ?
How to fetch the extensions from the below list in bash script ?
variable contains below data: –
A scripts/ A scripts/commit-email.pl.in A scripts/dev01_backup_cleanup A scripts/dir_check A scripts/ftpsync_download A scripts/mysql_table_drop A scripts/mysqlreport A scripts/mysqltuner.pl A scripts/phpinfo.php A scripts/post-commit.pl A scripts/scripts_from_satish/ A scripts/scripts_from_satish/backup, disk & security/ A scripts/scripts_from_satish/backup, disk & security/backup/ A scripts/scripts_from_satish/backup, disk & security/backup/common/ A scripts/scripts_from_satish/backup, disk & security/backup/common/mysql.sh A scripts/scripts_from_satish/backup, disk & security/backup/common/remote_fsys.sh A scripts/scripts_from_satish/backup, disk & security/backup/csrbkp.pnq.net/ A scripts/scripts_from_satish/backup, disk & security/backup/csrbkp.pnq.net/full_bkp.sh A scripts/scripts_from_satish/backup, disk & security/backup/csrbkp.pnq.net/inc_bkp.sh A scripts/scripts_from_satish/backup, disk & security/backup/svn.pnq.net/ A scripts/scripts_from_satish/backup, disk & security/backup/svn.pnq.net/svn_dmp.sh A scripts/scripts_from_satish/backup, disk & security/disk/ A scripts/scripts_from_satish/backup, disk & security/disk/disk_format.sh A scripts/scripts_from_satish/backup, disk & security/disk/disk_load.sh A scripts/scripts_from_satish/backup, disk & security/disk/disk_umount.sh A scripts/scripts_from_satish/backup, disk & security/security/ A scripts/scripts_from_satish/backup, disk & security/security/nessus.pnq.net/ A scripts/scripts_from_satish/backup, disk & security/security/nessus.pnq.net/scan_nw.sh A scripts/scripts_from_satish/check-case-insensitive.pl A scripts/scripts_from_satish/detect-merge-conflicts.sh A scripts/scripts_from_satish/pre-commit A scripts/sendmail_change_from_address.ksh A scripts/services_restarter.sh A scripts/svn post_commit scripts A scripts/tmp/ A scripts/tmp/as A scripts/tmp/ujogodbupdate.sh A scripts/tmp/vmware.sh A scripts/tuning-primer.sh A scripts/ujogodbupdate.sh A scripts/vmware.sh