Advertisement
Guest User

Untitled

a guest
Dec 6th, 2018
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.84 KB | None | 0 0
  1. NTP=0.000304
  2.  
  3. echo --------------------------------
  4.  
  5. if [ `echo "$NTP < 0.100001" | bc` -eq 1 ] ; then
  6.   echo "NTP < 0.100001"
  7. fi
  8.  
  9. echo --------------------------------
  10.  
  11. if [ `echo "$NTP > 0.000001" | bc` -eq 1 ] ; then
  12.   echo "NTP > 0.000001"
  13. fi
  14.  
  15. echo --------------------------------
  16.  
  17. bash -version
  18.  
  19. echo --------------------------------
  20.  
  21. $bash -f main.sh
  22. --------------------------------
  23. NTP < 0.100001
  24. --------------------------------
  25. NTP > 0.000001
  26. --------------------------------
  27. GNU bash, version 4.4.12(1)-release (x86_64-redhat-linux-gnu)
  28. Copyright (C) 2016 Free Software Foundation, Inc.
  29. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  30.  
  31. This is free software; you are free to change and redistribute it.
  32. There is NO WARRANTY, to the extent permitted by law.
  33. --------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement