Use nocasematch in bash scriptcan't see properly

[copya id="link_0327532642" target="0327532642"]copy[/copya]
[t_block id="0327532642" ]#!/bin/bash
# A shell script to backup mysql, webserver and files to tape
# Turn on a case-insensitive matching (-s set nocasematch)
shopt -s nocasematch
case $opt in


echo "Running mysql backup using mysqldump tool..."


echo "Running backup using rsync tool..."


echo "Running tape backup using tar tool..."


echo "Backup shell script utility"
echo "Usage: $0 {sql|sync|tar}"
echo "sql : Run mySQL backup utility."
echo "sync : Run web server backup utility."
echo "tar : Run tape backup utilty.";;


# Turn off a case-insensitive matching (-u unset nocasematch)
shopt -u nocasematch[/t_block]

Loading Questions

If you are facing any issue like can not see video so please login into Google with email what you forwarded to us Google Login or mail to administrator