Sha256: d42ff8123357ed5fe33cb04f0498e610d8ef35c480f2d5175fa1d134027c4b74

Contents?: true

Size: 538 Bytes

Versions: 34

Compression:

Stored size: 538 Bytes

Contents

Global Substitute (Gsub) In Place

gsubip is like gsub, which replaces all instances of a regular expression globally

[regular expression 1] [regular expression 2] => result

Example

gsubip . FOO file

Would make all characters in “file” become “FOO”

gsubip cat dog file

Would make all instances of “cat” “dog”

It is much cleaner than “sed.”

You don't need to have “sed” installed to run this program.

It doesn't read from the standard input

It takes exactly 3 arguments, no more, no fewer.

See also

gsub

Version data entries

34 entries across 34 versions & 6 rubygems

Version Path
ufos-1.0.94 ./documentation/gsubip
aliens-1.0.94 ./documentation/gsubip
freespeech-1.0.94 ./documentation/gsubip
elonmusk-1.0.94 ./documentation/gsubip
politics-1.0.94 ./documentation/gsubip
democracy-1.0.94 ./documentation/gsubip
democracy-1.0.93 ./documentation/gsubip
ufos-1.0.91 ./documentation/gsubip
aliens-1.0.91 ./documentation/gsubip
freespeech-1.0.91 ./documentation/gsubip
elonmusk-1.0.91 ./documentation/gsubip
politics-1.0.91 ./documentation/gsubip
politics-1.0.89 ./documentation/gsubip
ufos-1.0.87 ./documentation/gsubip
aliens-1.0.87 ./documentation/gsubip
freespeech-1.0.87 ./documentation/gsubip
elonmusk-1.0.87 ./documentation/gsubip
politics-1.0.87 ./documentation/gsubip
ufos-1.0.88 ./documentation/gsubip
aliens-1.0.88 ./documentation/gsubip