w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Find and replace all the same words in one file in Shell

It's really unclear what you are asking, but here is a guess:

$ cat input
my brother, brothers in the brotherhood

$ sed 's/<brother(s)?>/sister1/g' input
my sister, sisters in the brotherhood

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.