New answers tagged

0

You can use Vim in Ex mode: find -name '*.ext' -exec ex -sc '%s/OLD/NEW/g|x' {} ';' % select all lines s substitute g replace all instances in each line x save and close


0

You can use Vim in Ex mode: ex -sc 'g/98\.76\.54\.32/d' -cx known_hosts g global search d delete x save and close



Top 50 recent answers are included