Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- title: dont't know
- draft: true
- ---
- this is a test to add some extra content
- this is a test to add some extra content
- $ cat test.info | grep '---' -A1
- grep: unrecognized option `---'
- $ cat test.info | grep 'this' -A1
- $ grep -m 1 -e '---' test.info
- ---
- $ grep -- --- test.info | tail -1
- ---
- if $line 'not numeric' ...
- $ grep --version
- grep -e "---" test.info
- grep "---" test.info
- tac file| awk '/---/ {exit} {print}'|tac
- tac file
- next line
- this is a test to add some extra content
- ---
- draft: true
- title: dont't know
- ---
- next line
- this is a test to add some extra content
- this is a test to add some extra content
- next line
- $ cat t3.info
- ,,,
- qwerty
- uiop
- ,,,
- werwer
- werwer
- ,,,,,
- werwerwer
- werwerwer
- werwerwer
- ,,,,
- $ cat t3.info | grep -P ',,,' -A1
- ,,,
- qwerty
- --
- ,,,
- --
- ,,,,,
- werwerwer
- --
- ,,,,
- $
- $ cat t3.info
- ---
- qwerty
- uiop
- ---
- werwer
- werwer
- ---
- werwerwer
- werwerwer
- werwerwer
- ---
- $ cat t3.info | grep -P '---' -A1
- ---
- qwerty
- --
- ---
- --
- ---
- werwerwer
- --
- ---
- $ cat t3.info | grep -P '(?=x2d{3})...' -A1
- ---
- qwerty
- --
- ---
- --
- ---
- werwerwer
- --
- ---
- $ grep --version
- grep (GNU grep) 2.16
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement