Bash script


  1. sh-bang
  2. Comments in a Shell script
  3. cd in subshell
  4. Set a variable in a subshell
  5. . (dot command)
  6. Input
  7. Command line parameters
  8. Wildcards on the command line
  9. Command line and wildcard
  10. Command line $#, $*, $@
  11. shift
  12. read
  13. prompte (read -p)
  14. Read several values from one line
  15. Process ID
  16. Background process ID $!
  17. Exit from a script
  18. Exit status in $?
  19. if
  20. elif
  21. file tests
  22. File comparision tests
  23. Empty string
  24. Boolean tests
  25. Boolean expressions
  26. Testing strings - comparing their values
  27. case
  28. Debugging
  29. while-loop
  30. for loop
  31. Iterate over commend line arguments
  32. break
  33. continue
  34. Testing commands
  35. Testing commands while redirecting output
  36. Shell arithmetic
  37. Arrays
  38. Create array