Back

Deepanshu Mishra

Software Developer |...ย โ€ขย 26d

awk, sed & grep โ€” Tools That Changed How I See the Command Line When I began with Linux, I thought awk, sed, and grep were โ€œoptional.โ€ But working with logs, automation, and configs taught me theyโ€™re essential. ๐Ÿ” grep โ€“ Find in Text Search logs, configs, or outputs: grep "404" access.log grep -i "fail" /var/log/syslog grep -v "DEBUG" app.log โœ‚ sed โ€“ Edit on the Fly Replace, delete, or update without opening files: sed 's/dev/prod/g' env.txt sed -i 's/false/true/g' config.yaml ๐Ÿ“Š awk โ€“ Analyze Like a Pro Extract, filter, and summarize structured data: awk '{print $1, $3}' server.log awk -F, '$3 > 80 {print $1, $3}' scores.csv ๐Ÿ” Combine All 3: grep "404" access.log | sed 's/ - -.*//' | awk '{ip[$1]++} END {for (i in ip) print i, ip[i]}' | sort -k2 -nr Theyโ€™re fast, powerful, and built into every Linux system. #Linux #ShellScripting #DevOps #TerminalCommands #Productivity

Reply
4
8

More like this

Recommendations from Medial

Yashab alam

Founder ZehraSecย โ€ขย 3m

Thrilled to share a key milestone in the development of LEWIS (Linux Environment Working Intelligence System) โ€“ our AI-powered cybersecurity assistant! Today, I trained and saved our first threat detection model using a pipeline of TfidfVectorizer a

See More
Reply
2

Pallav Burnwal

Want to create Somet...ย โ€ขย 7m

๐ŸŽจ Transform Your Brand with a Stunning Logo! Looking for a professional, creative, and unique logo to represent your business? Look no further! I specialize in designing custom logos that capture the essence of your brand and make a lasting impress

See More
Reply
1
3

Download the medial app to read full posts, comements and news.