linuxkurs/beispiele/17/grep-loesungen.sh
2019-03-06 15:52:18 +01:00

8 lines
198 B
Bash

egrep '\<(Königst|T)ochter\>' frosch.txt
grep :/bin/bash$ /etc/passwd
k='[^aeiou]*'
grep -i ^${k}a${k}e${k}i${k}o${k}u${k}$ /usr/share/dict/words
egrep '(\<[[:alpha:]]{4,}\>).*\<\1\>' frosch.txt