Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #1.
- ls -l /usr/share/gtk*
- ls -l /usr/share/*[0-9]*[0-9]*
- #2
- egrep '[0-9]+' /usr/share/dict/words
- egrep '^i.*[A-Z].+$' /usr/share/dict/words
- egrep '^[^aeiouAEIOU]+$' /usr/share/dict/words
- egrep '.*[aeiouAEIOU]{2}.*' /usr/share/dict/words
- egrep '.*ening$' /usr/share/dict/words | wc -w
- egrep ".*'s$" /usr/share/dict/words | wc -w
- egrep '.*[A-Z]$' /usr/share/dict/words | wc -w
- #3
- sed -r "s/('s)/s/g" /usr/share/dict/words
- sed -r "s/(.*)(word)(.*)/\2\1\3/g" /usr/share/dict/words
- sed -r "s/^([A-Z])(.*)(.)$/\L\1\E\2\U\3/g" /usr/share/dict/words
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement