Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # log
- printf 'text
- match
- text
- match
- text
- text
- '>/tmp/test
- # print all after first match
- sed '0,/match/d' /tmp/test
- text
- match
- text
- text
- # print all after last match?
- php -r'$s=file_get_contents("/tmp/test"); echo substr($s, strrpos($s,"match"));'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement