Challenge 08 - Scripting

December 9, 2022 ยท View on GitHub

< Previous Challenge - Home - Next Challenge >

Description

In this challenge you will learn some basic stuff on shell scripting and the usage of some commands such as echo, cut, read and grep.

  • Create a script that looks up the name of the current distribution in the /etc/os-release file and prints it to the screen
  • Create a script that reads the usernames from /etc/passwd and prints the ones with shell ending in sh
  • Create a script that adds two integers requested from the user and print the sum

Success Criteria

  1. Ensure the ouptut from the script is displaying correctly the current distribution in use
  2. Validate if you was able to see all usernames with a shell ending in sh
  3. Check if the script is working as expected

Learning Resources