This file contains 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
mkdir hello #creating directory hello | |
cd hello #move to directory hello | |
mkdir five one #creating directory five and one in hello | |
cd five #move to directory five | |
mkdir six #creating directory six | |
cd six #move to directory six | |
touch c.txt #creating c.txt file using touch command in six | |
mkdir seven #creating directory seven | |
cd seven #move to directory seven | |
touch error.log #creating error.log file using touch command in seven |
This file contains 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
############################ PIPES ############################################################# | |
# Printing all the data from the url | |
curl https://raw.githubusercontent.com/bobdeng/owlreader/master/ERead/assets/books/Harry%20Potter%20and%20the%20Goblet%20of%20Fire.txt | |
# Save all the data from the url to the file harry_potter | |
curl -o harry_potter https://raw.githubusercontent.com/bobdeng/owlreader/master/ERead/assets/books/Harry%20Potter%20and%20the%20Goblet%20of%20Fire.txt | |
# Print first three line of the file harry_potter | |
head -n 3 harry_potter | |
# Print last 10 line of the file harry_potter | |
tail -n 10 harry_potter | |
# find the counts of the Harry in harry_potter -> total words = 2591 |