Skip to content

Thomas-George-T/HackerRank-The-Linux-Shell-Challenges-Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 

Repository files navigation

GitHub GitHub top language GitHub last commit ViewCount




Description

Solutions to all the easy, medium and hard challenges compiled with related learning resources for the Linux Shell Challenges on HackerRank.

Domains included:

Bash Challenges

Number Challenges Solutions
1 Let's Echo! Solution.sh
2 Looping and Skipping Solution.sh
3 A Personalized Echo Solution.sh
4 Looping with numbers Solution.sh
5 The World of Numbers Solution.sh
6 Comparing Numbers Solution.sh
7 Getting started with conditionals Solution.sh
8 More on Conditionals Solution.sh
9 Arithmetic Operations Solution.sh
10 Compute the Average Solution.sh
11 Functions and Fractals - Recursive Trees - Bash! Solution.sh

Text Processing

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

Arrays in Bash

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

Grep Sed Awk

Number Challenge Solutions
1 'Grep' #1 Solution
2 'Grep' #2 Solution
3 'Grep' #3 Solution
4 'Grep' -A Solution
5 'Grep' -B Solution
6 'Sed' command #1 Solution
7 'Sed' command #2 Solution
8 'Sed' command #3 Solution
9 'Sed' command #4 Solution
10 'Sed' command #5 Solution
11 'Awk' - 1 Solution
12 'Awk' - 2 Solution
13 'Awk' - 3 Solution
14 'Awk' - 4 Solution

Featured in

References, Tutorials and Relevant Materials

General

Bash

Text Processing

Arrays in Bash