I've got 40 files (*.4gl) in a directory. I want to change all occurences of 'umm_tcp' to 'test_tcp'. perl -pi -e 's/umm_tcp/test_tcp/g' *.4gl Done. :) j