echo "TABLESPACE REPORT FOR $ORACLE_SID" stty echo echo "All tablespaces or specific tablespace? [A|S]" read answer stty echo case $answer in A|a) echo "All tablespaces selected...please wait..."; getFiles A;; S|s) echo "Which tablespace?"; read wt; getFiles $wt;; *) echo "Only A or S are supported parameters."; exit 1;; esac
Minimalistic Oracle contains a collection of practical examples from my encounters with Oracle technologies. When relevant, I also write about other technologies, like Linux or PostgreSQL. Many of the posts starts with "how to" since they derive directly from my own personal experience. My goal is to provide simple examples, so that they can be easily adapted to other situations.
Thursday, August 28, 2014
How to use the case statement in a shell script, with case-insensitive input
Use the pipe (|) character for each possible case:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment