Quantcast
Viewing all articles
Browse latest Browse all 6

Pattern Matching Hyphen-Minus Sign in Bash

I was trying to use the sed command to perform some changes to a text and stepped into an interesting “problem”; pattern matching the minus-hyphen (-) symbol. Assume we have the following text: something SoMeThiNg some-thing soMe_thing and we want to match all the different versions of the word with one expression (one by one). [...]

Viewing all articles
Browse latest Browse all 6

Trending Articles