Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bash-HackerRank

Solutions to HackerRank Bash challenges. Each solution is a standalone script located under src/ and organized by category. See the notes/ directory for quick-reference guides on the Bash concepts covered here.

Capture

Basics

# Title Solution
1 Let's Echo Bash
2 Looping and Skipping Bash
3 A Personalized Echo Bash
4 Looping with Numbers Bash
5 The World of Numbers Bash
6 Comparing Numbers Bash
7 Getting started with conditionals Bash
8 More on conditionals Bash
9 Arithmetic Operations Bash
10 Compute the average Bash
11 Functions and Fractals - Recursive Trees - Bash!

Text Processing

# Title Solution
1 Cut 1 Bash
2 Cut 2 Bash
3 Cut 3 Bash
4 Cut 4 Bash
5 Cut 5 Bash
6 Cut 6 Bash
7 Cut 7 Bash
8 Cut 8 Bash
9 Cut 9 Bash
10 Head of a Text File 1 Bash
11 Head of a Text File 2 Bash
12 Middle of a Text File
13 Tail of a Text File 1 Bash
14 Tail of a Text File 2 Bash
15 'Tr' Command 1 Bash
16 'Tr' Command 2 Bash
17 'Tr' Command 3 Bash
18 Sort Command 1 Bash
19 Sort Command 2 Bash
20 Sort Command 3 Bash
21 Sort Command 4 Bash
22 Sort Command 5 Bash
23 Sort Command 6 Bash
24 Sort Command 7 Bash
25 Uniq Command 1 Bash
26 Uniq Command 2 Bash
27 Uniq Command 3 Bash
28 Uniq Command 4 Bash
29 Paste 1 Bash
30 Paste 2 Bash
31 Paste 3 Bash
32 Paste 4 Bash

Arrays

# Title Solution
1 Read in an Array Bash
2 Slice an Array Bash
3 Filter an Array with Patterns Bash
4 Concatenate an array with itself Bash
5 Display an element of an array Bash
6 Count the number of elements in an Array Bash
7 Remove the First Capital Letter from Each Element Bash
8 Lonely Integer - Bash! Bash

Grep Sed Awk

# Title Solution
1 Grep 1 Bash
2 Grep 2 Bash
3 Grep 3 Bash
4 Grep A Bash
5 Grep B Bash
6 Awk 1 Bash
7 Awk 2 Bash
8 Awk 3 Bash
9 Awk 4 Bash
10 Sed 1 Bash
11 Sed 2 Bash
12 Sed 3 Bash
13 Sed 4 Bash
14 Sed 5 Bash

About

Solutions to HackerRank Bash problems.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages