SHARE
TWEET

Untitled

a guest Nov 21st, 2013 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. clear
  2.  
  3. select a in \
  4.   'a list of users with the UID greater than 999' \
  5.   'the Day, Month, and Year' \
  6.   'show a file name from lower case to upper case'
  7. do
  8.  
  9.   case "$REPLY" in
  10.     1) awk -F: '$3>=999' /etc/passwd ;;
  11.     2) date +'Today is %d %B %Y' ;;
  12.     3)
  13.       echo 'What file would you like to change from lower case to uppercase?'
  14.       select y in *; do
  15.         clear
  16.         tr '[:lower:]' '[:upper:]' < "$y"
  17.         break
  18.       done
  19.     ;;
  20.     *) echo 'Invalid input'
  21.   esac
  22.  
  23. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top