Advertisement
Guest User

Untitled

a guest
Jul 19th, 2023
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. hostname$:  awk '$1 ~ $2'
  2. hostname$:  123afdfa ^[0-9a-z]+$
  3. hostname$:  123afdfa ^[0-9a-z]+$
  4. hostname$:  123afdfa /^[0-9a-z]+$/
  5. (nothing printed)
  6. hostname$:  123afdfa "^[0-9a-z]+$"
  7. (nothing printed)
  8.  
  9.  
  10. /*
  11. *   my question is why the regular expression enclosed by / or "" doesn't work?
  12. /
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement