Advertisement
Guest User

asdqtgfd

a guest
Nov 26th, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.34 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. CMDMGR=/opt/microstrategy/alpha/bin/mstrcmdmgr
  4. LOGS=/mnt/install/swap_log/
  5. LOGFILE=db_swap.log
  6. CM_LOG=cm_db_swap.log
  7. SCPS=/mnt/install/scripts/cm_scripts
  8. host=$1
  9.  
  10. myString=$(readlink odbc.ini | grep odbc1)
  11. size=${#myString}
  12. substring="Linkwood"
  13.  
  14. if [ "$size" -gt 0 ] && [[ "$host" =~ "$substring" ]]; then
  15.     echo "jest"
  16. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement