Skip to content

Instantly share code, notes, and snippets.

View RSKuwar's full-sized avatar

Rohit Shrirmchandra kuwar RSKuwar

View GitHub Profile
@RSKuwar
RSKuwar / Drill2.sh
Last active October 28, 2025 06:49
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
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/