Off the cuff: perl -p -i.bak -e 's/^(.*text-you-are-searching-for.*)$/${1}text-to-append/;' >>> amy at real-time.com 04/15/02 11:39AM >>> What's the simplest way to do the following in perl: Take as input a file. Search for a line containing a particular string. Then append to that line.