Linux Labs· Linux FoundationsLab 5 of 26

Bash Scripts That Loop Over Input

Write four small scripts that act on a list: over their arguments, over the lines of a host inventory, over a directory of logs and over the output of a monitoring command. Each one is then run on input you have not seen.

  • Intermediate
  • 30 min
  • Not rated yet
  • A real environment in your browser
  • You run the commands yourself
  • Your result is checked automatically

In this moduleLinux Foundations

  1. Find Answers on the Machine Itself25 min
  2. Become Another User with su and sudo25 min
  3. History, Aliases, and Shell Startup Files30 min
  4. Write Your First Bash Scripts30 min
  5. Bash Scripts That Loop Over InputYou are here