Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: user80856
Added: Oct 16, 2019 4:44 PM
Views: 8
Tags: no tags
  1. #!/bin/bash
  2.  
  3. s1 = @10;
  4. {
  5. if [ "10" = "10" ]; then
  6. echo expression evaluated as true
  7. else
  8. echo expression evaluated as false
  9. fi
  10. }
  11. {
  12. if [ "foo" = "23eoo" ]; then
  13. echo expression evaluated as true
  14. else
  15. echo expression evaluated as false
  16. fi
  17. }
  18.  
  19. {
  20. if [ "10" = "10" ]; then
  21. echo expression evaluated as true
  22. else
  23. echo expression evaluated as false
  24. fi
  25. }
  26.  
  27.  
  28. var=("1" "2" "3" "4" "5" "6")
  29.  
  30. for i in "${var[@]}"; do
  31.   echo $i
  32. done