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.
| # | 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 |
| # | 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 |