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
Q1. Create the following directory structure. (Create empty files where necessary) | |
Solution:- | |
:~$ mkdir hello | |
:~$ mkdir hello/five hello/one | |
:~$ cd hello | |
:~/hello$ ls | |
five one | |
:~/hello$ mkdir five/six | |
:~/hello/five$ ls |
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--- | |
1.Download the contents of "Harry Potter and the Goblet of fire" using the command line from here | |
wget https://raw.githubusercontent.com/bobdeng/owlreader/master/ERead/assets/books/Harry%20Potter%20and%20the%20Goblet%20of%20Fire.txt | |
1. Print the first three lines in the book | |
head -3 harry.txt | |
2.Print the last 10 lines in the book | |
tail -10 harry.txt |