Skip to content

Instantly share code, notes, and snippets.

@sagnitude
Last active January 31, 2016 08:16
Show Gist options
  • Save sagnitude/0946d0963542ed6e2bfa to your computer and use it in GitHub Desktop.
Save sagnitude/0946d0963542ed6e2bfa to your computer and use it in GitHub Desktop.
find pattern 'answer="$1"', print all $1 out
#include <stdlib.h>
int main() {
system("cat text.txt | grep -Po 'answer=\"\\K[^\"]*'");
return 0;
}
#!/bin/bash
cat text.txt | grep -Po 'answer="\K[^"]*'
<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