User Tools

Site Tools


cs:bash_language
Return to Home page

Bash Language

Some examples regarding the bash shell scripting language

  1. Arguments: Passage of arguments from the shell to a bash script
  2. Example 1: Extraction of some statistics regarding files (for and if statements)
  3. Example 2: Print the numbers between 1 and 20, with the exception of the number 4 and 13 (while and if statements).
  4. Example 3: Sum of a set of numbers passed to the script as a command line argument.
  5. Example 4: Script to obtain some statistics about running processes (bash if and shift commands)
  6. Example 5: Found a file inside a list of directories
  7. Read Files: How to read a file word-by-word, line-by-line, character-by-character
  8. Arrays: Bash arrays and associative arrays
  9. Exam 20140908: Solution of the 2014/09/08 exam

If you found any error, or if you want to partecipate to the editing of this wiki, please contact: admin [at] skenz.it

You can reuse, distribute or modify the content of this page, but you must cite in any document (or webpage) this url: https://www.skenz.it/cs/bash_language?do=
/web/htdocs/www.skenz.it/home/data/pages/cs/bash_language.txt · Last modified: 2020/11/26 23:18 (external edit)