Not the smartest way, but you can do it awk. The idea is to match the word undand type the word in front of and next to it.
echo "Geschehnis und Beispiel und Grund und Ursachen" | awk '{for(i=1;i<=NF;i++) { if (match($i,/^und$/)) { print prev,$i,$(i+1) }; prev=$i }}'
which produces a conclusion like
Geschehnis und Beispiel
Beispiel und Grund
Grund und Ursachen
Inian source
share