Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. ‘<’ Match the empty string at the beginning of word.
  2. ‘>’ Match the empty string at the end of word.
  3.  
  4. /dev/sdb1 /media/fresh ext2 defaults 0 0
  5.  
  6. egrep '</media/fresh>' /etc/fstab
  7.  
  8. egrep '[[:blank:]]/media/fresh[[:blank:]]' /etc/fstab
  9.  
  10. [[:alnum:]_]
  11.  
  12. Word-constituent characters are letters, digits, and the underscore.
  13.  
  14. grep -wo '/media/fresh' /etc/fstab
  15.  
  16. $ grep -wo '/media/fresh' <<< '/dev/sdb1 /media/fresh ext2 defaults 0 0'
  17. /media/fresh
  18.  
  19. egrep "(^|W)/media/fresh($|W)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement