SHARE
TWEET

Untitled

a guest Jun 16th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top