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
| wget -O Harry.txt "https://raw.githubusercontent.com/bobdeng/owlreader/master/ERead/assets/books/Harry%20Potter%20and%20the%20Goblet%20of%20Fire.txt" | |
| head -n 3 Harry.txt | |
| tail -n 10 Harry.txt | |
| grep -oi "Harry" Harry.txt | wc -l | |
| grep -oi "Ron" Harry.txt | wc -l | |
| grep -oi "Hermione" Harry.txt | wc -l | |
| grep -oi "Dumbledore" Harry.txt | wc -l | |
| sed -n '100,200p' Harry.txt | |
| tr -cs '[:alnum:]' '\n' < Harry.txt | tr '[:upper:]' '[:lower:]' | sort | uniq | wc -l |
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
| mkdir hello | |
| mkdir -p one/two/three/four five/six/seven | |
| touch five/six/c.txt five/six/seven/error.log one/a.txt one/b.txt one/two/d.txt one/two/three/e.txt one/two/three/four/access.log | |
| find . -type f -name "*.log" -delete | |
| echo "Unix is a family of multitasking, multiuser computer operating systems that derive from the original AT&T Unix, development starting in the 1970s at the Bell Labs research center by Ken Thompson, Dennis Ritchie, and others" > uno/two/a.txt | |
| rm -r five | |
| mv one uno | |
| mv ./uno/a.txt ./uno/two/ |