> Hi There, Howdy
> > How do I read a file and replace all occurences of a word in it with > another word. For example, I want to read the file BUS_SCHEDULE and > map bus to magic_bus. > perl -pi -e 's/\bbus\b/magic_bus/g;' BUS_SCHEDULE The pie tells perl tp read the files that you have as arguments and process them line by line based on what's inbetween the ''. So if you so a substitution that will do the trick! HTH Dmuey > > - Jason > > /• > • If A equals success, then the formula is: > • X+Y+Z = A > • X is work. Y is play. And Z is keep your mouth shut. > • -Albert Einstein > •/ > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
