Bash and command-line tools can be very powerful. Test your Linux scripting skills.
Name | Preview | Code | Difficulty |
---|---|---|---|
Let's Echo | Let's get started with the simplest Bash command: echo. | bash | Easy |
Looping and Skipping | Let's play with for loops, a little more. Let's skip numbers! | bash | Easy |
A Personalized Echo | A very gentle on-boarding, to accepting input in Bash. | bash | Easy |
Looping with Numbers | Let's experiment with 'For' loops | bash | Easy |
The World of Numbers | Let's move on to playing with numbers in Bash. | bash | Easy |
Comparing Numbers | Simple comparisons between numbers: Greater than, less than, equal to. | bash | Easy |
Getting started with conditionals | - | bash | Easy |
More on Conditionals | Three sides of a triangle are provided to you. Is the Triangle Scalene, Equilateral or Isosceles? | bash | Easy |
Arithmetic Operations | Math in shell scripts. | bash | Medium |
Compute the Average | Compute the average of a list of N numbers provided to you. | bash | Medium |
Functions and Fractals - Recursive Trees - Bash! | Create a Fractal Tree | bash | Hard |
Name | Preview | Code | Difficulty |
---|---|---|---|
Cut #1 | Playing with the 'cut' command. | bash | Easy |
Cut #2 | Playing with the 'cut' command. | bash | Easy |
Cut #3 | bash | Easy | |
Cut #4 | Playing with the 'cut' command. | bash | Easy |
Cut #5 | Playing with the 'cut' command. | bash | Easy |
Cut #6 | Playing with the 'cut' command. | bash | Easy |
Cut #7 | Playing with the 'cut' command. | bash | Easy |
Cut #8 | Playing with the 'cut' command. | bash | Easy |
Cut #9 | Playing with the 'cut' command and TSV files. | bash | Easy |
Head of a Text File #1 | Introducing the 'head' command. | bash | Easy |
Head of a Text File #2 | The 'head' command. | bash | Easy |
Middle of a Text File | Display lines from the middle of a text file | bash | Easy |
Tail of a Text File #1 | Introduction to the 'tail' command. | bash | Easy |
Tail of a Text File #2 | The 'tail' command. | bash | Easy |
'Tr' Command #1 | Introduction to the 'tr' command. | bash | Easy |
'Tr' Command #2 | Introduction to the 'tr' command. | bash | Easy |
'Tr' Command #3 | bash | Easy | |
Sort Command #1 | Introducing the 'sort' command in Linux. | bash | Easy |
Sort Command #2 | Introducing the 'sort' command in Linux. | bash | Easy |
Sort Command #3 | Introducing the 'sort' command in Linux. | bash | Easy |
Sort Command #4 | Playing around with the 'sort' command. | bash | Easy |
Sort Command #5 | Playing around with the 'sort' command. | bash | Easy |
'Sort' command #6 | Let's learn about the 'sort' command. | bash | Easy |
'Sort' command #7 | Let's learn about the 'sort' command. | bash | Easy |
'Uniq' Command #1 | Introduction to the 'uniq' command. | bash | Easy |
'Uniq' Command #2 | Introduction to the 'uniq' command. | bash | Easy |
'Uniq' command #3 | Let's learn about the 'uniq' command. | bash | Easy |
'Uniq' command #4 | Let's learn about the 'uniq' command. | bash | Easy |
Paste - 3 | Getting started with the 'paste' command. | bash | Medium |
Paste - 4 | Getting started with the 'paste' command. | bash | Medium |
Paste - 1 | Getting started with the 'paste' command. | bash | Medium |
Paste - 2 | Getting started with the 'paste' command. | bash | Medium |
Name | Preview | Code | Difficulty |
---|---|---|---|
Read in an Array | Read in an Array - and display all its elements. | bash | Easy |
Slice an Array | Slice a given array. | bash | Easy |
Filter an Array with Patterns | Read in an array and filter out certain elements based on a pattern. | bash | Medium |
Concatenate an array with itself | Concatenate an array with itself. | bash | Easy |
Display an element of an array | Read in an Array - and display the fourth element in it. | bash | Easy |
Count the number of elements in an Array | Read in an Array - and count the number of elements in it. | bash | Easy |
Remove the First Capital Letter from Each Element | The first capital letter in each element should be replaced with a dot ('.'). | bash | Medium |
Lonely Integer - Bash! | Find the integer that occurs only once in the Array | bash | Hard |
Name | Preview | Code | Difficulty |
---|---|---|---|
'Awk' - 3 | Let's play around with 'awk'. | bash | Medium |
'Awk' - 4 | Let's play around with 'awk'. | bash | Medium |
'Grep' #1 | Introduction to 'grep' in Linux. | bash | Medium |
'Grep' #2 | Introduction to 'grep' in Linux. | bash | Medium |
'Grep' #3 | Introduction to 'grep' in Linux. | bash | Medium |
'Grep' - A | Let's 'grep' out stuff from text files! | bash | Easy |
'Grep' - B | Let's 'grep' out stuff from text files! | bash | Easy |
'Sed' command #1 | Let's learn about the 'sed' command. | bash | Medium |
'Sed' command #2 | Let's learn about the 'sed' command. | bash | Medium |
'Sed' command #3 | Let's learn about the 'sed' command. | bash | Easy |
'Sed' command #4 | Let's learn about the 'sed' command. | bash | Hard |
'Sed' command #5 | Let's learn about the 'sed' command. | bash | Hard |
'Awk' - 1 | Introduction to the 'awk' command in Linux. | bash | Medium |
'Awk' - 2 | Let's play around with 'awk'. | bash | Medium |