Skip to content

Instantly share code, notes, and snippets.

View abid019's full-sized avatar

Md Abid Hussain abid019

  • 04:09 (UTC -12:00)
View GitHub Profile
mkdir hello #creating directory hello
cd hello #move to directory hello
mkdir five one #creating directory five and one in hello
cd five #move to directory five
mkdir six #creating directory six
cd six #move to directory six
touch c.txt #creating c.txt file using touch command in six
mkdir seven #creating directory seven
cd seven #move to directory seven
touch error.log #creating error.log file using touch command in seven
@abid019
abid019 / CLI_drill_12.sh
Last active November 22, 2024 14:01
CLI commands drill 2
############################ PIPES #############################################################
# Printing all the data from the url
curl https://raw.githubusercontent.com/bobdeng/owlreader/master/ERead/assets/books/Harry%20Potter%20and%20the%20Goblet%20of%20Fire.txt
# Save all the data from the url to the file harry_potter
curl -o harry_potter https://raw.githubusercontent.com/bobdeng/owlreader/master/ERead/assets/books/Harry%20Potter%20and%20the%20Goblet%20of%20Fire.txt
# Print first three line of the file harry_potter
head -n 3 harry_potter
# Print last 10 line of the file harry_potter
tail -n 10 harry_potter
# find the counts of the Harry in harry_potter -> total words = 2591