Last active
January 31, 2016 08:16
-
-
Save sagnitude/0946d0963542ed6e2bfa to your computer and use it in GitHub Desktop.
find pattern 'answer="$1"', print all $1 out
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
#include <stdlib.h> | |
int main() { | |
system("cat text.txt | grep -Po 'answer=\"\\K[^\"]*'"); | |
return 0; | |
} |
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
#!/bin/bash | |
cat text.txt | grep -Po 'answer="\K[^"]*' |
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
<div class="row"> | |
<div class="span10"> | |
<p>Remember, the <strong>only thing</strong> before everything, is to have a dogma. A dogma is a list consists by DOs and DONTanswer="C"s. You make it, stick to it while adapt it to reality, question yourself from time to time: is everything on the list mutuallanswer="A"y exclanswer="B"usive and collectively eanswer="B"xanswer="C"hausive?</p> | |
<p>And there is a meta dogma for dogmas:</p> | |
<ul> | |
<li>Avoid emotional tactics</li> | |
<li>Every kindness counts</li> | |
<li>Gentleness is the ultimate strength</li> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment