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 | |
| #Pipes | |
| curl -o Harry https://raw.githubusercontent.com/bobdeng/owlreader/master/ERead/assets/books/Harry%20Potter%20and%20the%20Goblet%20of%20Fire.txt | |
| head -n 3 Harry | |
| tail -n 11 Harry | |
| grep -ciw "Harry" Harry | |
| grep -ciw "Ron" Harry | |
| grep -ciw "Hermione" Harry |
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 | |
| clear | |
| mkdir -p hello/five/six/seven/ hello/one/two/three/four | |
| touch hello/five/six/c.txt | |
| touch hello/five/six/seven/error.log | |
| touch hello/one/a.txt hello/one/b.txt | |
| touch hello/one/two/three/four/access.log | |
| touch hello/one/two/three/e.txt | |
| touch hello/one/two/d.txt | |
| find . -iname "*.log" -delete |