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
| # Pipes | |
| # 1. Download the Harry Potter text file and save it as novel.txt | |
| curl https://raw.githubusercontent.com/bobdeng/owlreader/master/ERead/assets/books/Harry%20Potter%20and%20the%20Goblet%20of%20Fire.txt > novel.txt | |
| # 2. Display the first 3 lines of novel.txt | |
| head -n 3 novel.txt | |
| # 3. Display the last 10 lines of novel.txt | |
| tail -n 10 novel.txt |
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
| # 1. Created the given directory structure | |
| # Create a directory named hello | |
| mkdir hello | |
| # Move into hello directory | |
| cd hello | |
| # Create a directory named one | |
| mkdir one |