Sha256: 3e2341189b64a4131327d05a2f74b90e0c466b380dcf40c67e2890cdd713c53c

Contents?: true

Size: 539 Bytes

Versions: 12

Compression:

Stored size: 539 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

12 entries across 12 versions & 4 rubygems

Version Path
elonmusk-1.0.77 ./documentation/gsubip
ufos-1.0.77 ./documentation/gsubip
aliens-1.0.77 ./documentation/gsubip
freespeech-1.0.77 ./documentation/gsubip
elonmusk-1.0.72 ./documentation/gsubip
ufos-1.0.72 ./documentation/gsubip
aliens-1.0.72 ./documentation/gsubip
freespeech-1.0.72 ./documentation/gsubip
freespeech-1.0.71 ./documentation/gsubip
elonmusk-1.0.71 ./documentation/gsubip
ufos-1.0.71 ./documentation/gsubip
aliens-1.0.71 ./documentation/gsubip