Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to find last occurrence of a pattern file

tac < fileName | sed  '/EndPattern/,$!d;/StartPattern/q' | tac 
 
PREVIOUS NEXT
Tagged: #find #occurrence #pattern #file
ADD COMMENT
Topic
Name
9+8 =