This file contains hidden or 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
hi |
This file contains hidden or 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
#!/bin/bash | |
echo "=========PIPES=========" | |
touch content.txt | |
wget "https://raw.githubusercontent.com/bobdeng/owlreader/master/ERead/assets/books/Harry%20Potter%20and%20the%20Goblet%20of%20Fire.txt" #downloading txt file from link | |
cat "Harry Potter and the Goblet of Fire.txt" > content.txt #pasting contents of txt file to new txt file | |
head content.txt -n 3 #printing first three lines | |
tail content.txt -n 10 #printing last ten lines | |
grep -o -i Harry content.txt | wc -l #printing word counts of 'Harry' | |
grep -o -i Rom content.txt | wc -l #printing word counts of 'Rom' |
This file contains hidden or 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
echo "=================================" | |
echo "0. INSTALLING PRE-REQUISITES" | |
echo "=================================" | |
sudo apt install tree -y | |
clear | |
echo "=================================" | |
echo "1. CREATING A DIRECTORY STRUCTURE" | |
echo "=================================" | |
cd |