Advertisement
Guest User

Untitled

a guest
Dec 14th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.58 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #1.
  4.  
  5. ls -l /usr/share/gtk*
  6.    
  7. ls -l /usr/share/*[0-9]*[0-9]*
  8.  
  9. #2
  10.  
  11. egrep '[0-9]+' /usr/share/dict/words
  12.  
  13. egrep '^i.*[A-Z].+$' /usr/share/dict/words
  14.  
  15. egrep '^[^aeiouAEIOU]+$' /usr/share/dict/words
  16.  
  17. egrep '.*[aeiouAEIOU]{2}.*' /usr/share/dict/words
  18.  
  19. egrep '.*ening$' /usr/share/dict/words | wc -w
  20.  
  21. egrep ".*'s$" /usr/share/dict/words | wc -w
  22.  
  23. egrep '.*[A-Z]$' /usr/share/dict/words | wc -w
  24.  
  25. #3
  26.  
  27. sed -r "s/('s)/s/g" /usr/share/dict/words
  28.  
  29. sed -r "s/(.*)(word)(.*)/\2\1\3/g" /usr/share/dict/words
  30.  
  31. 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