Last active
August 29, 2015 14:09
-
-
Save peczenyj/04c2c43848db5fefaa0f to your computer and use it in GitHub Desktop.
remover bloco para fim de arquivo.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lala | |
begin | |
sddasdas | |
asdasdasd | |
asdasd | |
end | |
lolo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lala | |
lolo | |
begin | |
sddasdas | |
asdasdasd | |
asdasd | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed '$ r /tmp/lol | |
/begin/,/end/{ | |
w /tmp/lol | |
d | |
}' input.txt > output.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment