2

What would be a UNIX command for recursively finding and replacing strings in text files on a SunOS 5.10 machine?

Ex:

I want to replace a string SIR01111 with SIR02222 in files from my current directory, recursively.

fedorqui
  • 275,237
  • 103
  • 548
  • 598
Prince
  • 41
  • 5

1 Answers1

1
find . -name "*.txt"|xargs perl -pi -e 's/SIR01111/SIR02222/g'
Vijay
  • 65,327
  • 90
  • 227
  • 319