Grep only inside particular files
grep -inr --include package.json \
'shortcut": {' . -A 3
- It's the
--includeflag that does the important part. -i→ case insensitive-n→ print line number-r→ recursive from starting page.→ start in current directory-A 3→ print the 3 lines below the found line