Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --
- are you happy
- --
- I am hungry
- are you
- --
- are you hungry
- too
- --
- are you happy
- --
- are you hungry
- too
- #!/usr/bin/awk -f
- /--/ {
- start=1
- matching=0
- next
- }
- start && $1 == search {
- matching=1
- print "--"
- }
- matching {
- print
- }
- {
- start=0
- }
- ./search.awk -v search=are
Add Comment
Please, Sign In to add comment