How to use grep command in 5 minutes

grep [OPTION] PATTERNS [FILE]
grep 'login request error. input id:123' ./server.log
grep -A10 -B5 'login request error. input id:123' ./server.log
grep -m1 -A10 -B5 'login request error. input id:123' ./server.log

--

--

--

Software Engineer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

FlokiLINK — MEME — Competition Winners

Salesforce lighting component

Launch Lightweight HTTP Server with AWS CloudFormation

Display XML data on HTML page and highlight the search text

Typescript ExpressJS API with webpack

Vue Js For Every One: Fundamental Blocks- Part 1

Migration to Framework7 v3

Marketing automation with intercom — using series!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jinwon Park

Jinwon Park

Software Engineer

More from Medium

Git Reflog

Have you heard of Application Frameworks…?

REST is here to stay.

Full Stack Development