Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. echo abcd | perl -pe "s/(ab)(cd)?/defined($2)?12:''/e"
  2.  
  3. Backslash found where operator expected at -e line 1, near "1"
  4. (Missing operator before ?)
  5. syntax error at -e line 1, near "1"
  6. Execution of -e aborted due to compilation errors.
  7.  
  8. echo abcd | perl -pe's/(ab)(cd)?/defined($2)?$1.$2:""/e'
  9.  
  10. echo abcd | perl -pe's/(ab(cd)?)/defined($2)?$1:""/e'
  11.  
  12. echo abcd | perl -pe's/ab(?!cd)//'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement