sed can't do edit-in-place, you'd better use perl with -i -p -e flags to change a file : perl -p -i -e 's/<USERNAME>/joe.somebody/' file
to change a bunch of files : find /your/path -name 'pattern' -exec perl -p -i -e 's/<USERNAME>/joe.somebody/' {} \; hth A 23:04 16/12/2002 -0800, vous avez écrit : >I have some files that I want to replace <USERNAME> with something like >joe.somebody > >the files are in multiple locations: > >/location1/file1 >/location2/file2 >/location3/*.xml > >I have tried to figure out how to do this with sed but I'm not having any >luck. Any sed people out there that can point me to the correct sed command >line. > > > >-- >redhat-list mailing list >unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe >https://listman.redhat.com/mailman/listinfo/redhat-list > > - * - * - * - * - * - * - Bien sûr que je suis perfectionniste ! Mais ne pourrais-je pas l'être mieux ? Thierry ITTY eMail : [EMAIL PROTECTED] FRANCE -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list