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
| #to save the file from the weblink we use the below command | |
| wget -O harry-potter.txt https://raw.githubusercontent.com/bobdeng/owlreader/master/ERead/assets/books/Harry%20Potter%20and%20the%20Goblet%20of%20Fire.txt | |
| #we can print first three lines in a file by using the following command. | |
| head -n 3 harry-potter.txt | |
| #To print last ten lines in a file | |
| tail -n 10 harry-potter.txt | |
| How many times do the following words occur in the book? |
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
| #Create directory named hello | |
| mkdir hello | |
| #Change Directory to hello | |
| cd hello | |
| #Create directory named five | |
| mkdir five | |
| #Change Directory to five |