When using vi, or sed. I run a %s/search/replace and these two tools only seem to replace the first instance of the string.
ie. in vi
dog dog dog dog dog cat cat dog hello
then
:%s/dog/cat
will only change to
cat dog dog dog dog cat cat dog hello
is there an option to change all or another tool to use.
I'm using a Hp Unix B.11.00 U 9000/800
Contrary to popular belief, Unix is user friendly.It just happens to be very selective about who it decides to make friends
with.
ie. in vi
dog dog dog dog dog cat cat dog hello
then
:%s/dog/cat
will only change to
cat dog dog dog dog cat cat dog hello
is there an option to change all or another tool to use.
I'm using a Hp Unix B.11.00 U 9000/800
Contrary to popular belief, Unix is user friendly.It just happens to be very selective about who it decides to make friends
with.