Last active
June 4, 2019 13:08
-
-
Save empeje/1a119094a8fc117e8f65464ece8cface to your computer and use it in GitHub Desktop.
Some HackerRank Linux Shell Challenges
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
N=99 | |
for number in $(seq 1 1 $N); do | |
odd=$(($number%2)) | |
if [ ! $odd -eq 0 ]; then | |
echo $number | |
fi | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
read -p "Enter Your Name: " username | |
echo "Welcome $username" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment