Skip to content

Instantly share code, notes, and snippets.

View Naveed69's full-sized avatar

Naveed Desai Naveed69

  • TCS
  • Bangalore
View GitHub Profile
@Naveed69
Naveed69 / Cli_drill2.sh
Last active April 4, 2026 05:28
CLI_Drill-2
#!/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
@Naveed69
Naveed69 / drill1.sh
Last active April 4, 2026 04:49
Drill 1 of CLI
#!/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