ack - grep: repetition-operator operand invalid -


Let me express it regularly (? & Lt; = heads) / () *. *?) (? = \ N) and you can see it working here

I need this regex to work in the grep command but I am getting this error.

  $ grep -Eo '(? & Lt; = heads / \) (. *?) (? = \ N)' text.txt grep: recurrence operator opera and invalid   

It works great in the ack, but I do not have an ank on the machine on which I need to run it.

  ack text.txt -o --match '(? & Lt; = heads) / () *. ? = \ N) '  

text.txt

  74f3649af36984e1b784e46502fe318e91d29570 major 06d4463ab47a6246e6bd94dc3b9267d59fc16c2e refs / heads / ARC 0597e13c22b6397a1b260951f9d064f668b26f08 refs / heads / LocationAge e7e1ed942d15efb387c878b9d0335b37560c8807 refs / heads / feature / 311-312-breaking banner updates d0b2632b465702d840a358d0b192198ae505011c riffs / head / Gulf-News 509173 Iafsi 6792739787787de0d23b0c804d4593 refs / heads / jbb-new-applicationdidfinishlaunching 1e7b03ce75b1a7ba47ff4fb5128bc0bf43a7393b re-FS / head / locationdebug 74f3649af36984e1b784e46502fe318e91d29570 refs / heads / master 5d2ede384325877c24db7ba1ba0338dc7b7f84fb refs / heads / mixed media 3f3b6a81dd3baea8744aec6b95c2fe4aaeb20ea3 refs / Head / answer onezero 4198a43aab2dfe72d7 ae9e9e53fbb401fc9dac1f refs / heads / Whitelabel 76741013b3b2200de29f53800d51dfd6dc7bac5e refs / tags / R10 fc53b1a05dad3072614fb397a228819a67615b82 refs / tags / R10 ^ {} afdcfd970c9387f6fda0390ef781c2776aa666c3 refs / Code / r11    

does not support grep (? & Lt; = ...) or *? See or (? =?) operators

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -