On Sat, Sep 7, 2013 at 11:58 PM, Shrinivasan T <[email protected]> wrote: > We need multiple strings replace in a text file. > > Example. > > Line one - 1 > Line two - 2 > Line three -3 > > Replace all 1,2,3 and - with space. > > How to do this in a single command?
sed -e 's/[123-]/ /g' <your_file_name> remove the 'g' at the end if you want to replace only the first instance (in the line). -- Arun Khan Sent from my non-iphone/non-android device (অরুণ খান্/अरुण खान) I'd rather be called a moron, than walk around with doubts in my mind. _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc ILUGC Mailing List Guidelines: http://ilugc.in/mailinglist-guidelines
