DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+8 =
Submit