* Bernhard Voelker
On 3/17/22 17:46, Patrick Shanahan wrote:
* Per Jessen
[03-17-22 10:20]: Patrick Shanahan wrote:
I need to escape the periods in some ip addresses.
I need xc=111.111.111.111 to become 111\\.111\\.111\\.111
sed appears (or not) to be the proper utility but I cannot get the correct syntax.
In which context, Patrick? there are places where you need three backslashes, even four.
grep from bash control line grep 111\\.111\\.111\\.111
Another way: use `grep -F`:
-F, --fixed-strings PATTERNS are strings
(no need to escape the '.' in fixed strings)
a *better* solution, tks -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc What sort of day was it? A day like all days, filled with those events that alter and illuminate our times...