Challenge 08 - Scripting
< 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
- Ensure the ouptut from the script is displaying correctly the current distribution in use
- Validate if you was able to see all usernames with a shell ending in sh
- Check if the script is working as expected
Learning Resources