test.sh.save 179 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
 
while getopts ":d" opt; do
  case $opt in
    d)
      echo "-d was triggered!"
;;
    \?)
      echo "Invalid option: -d to delete remote logs" >&2
	;;
  esac
done