Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

cat file content after pattern

# greps for Pattern and outputs up to 100000 lines following that line pattern match.
grep -A100000 Pattern file

# greps for word Partition in multiple file ending in .md and outputs up to 15 lines following that line pattern match.
grep -A15 Partition *.md |egrep -v ":--:|:--:" |egrep -v  "md-|"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cat #file #content #pattern
ADD COMMENT
Topic
Name
6+8 =