On Thu, Feb 9, 2012 at 11:18 AM, kumaresan chandran < [email protected]> wrote:
> Hi, > > > cat test1.txt : > *************** > ARCHIVE4_15322,0 > ARCHIVE4_15323,0 > ARCHIVE4_15324,0 > ARCHIVE4_15325,0 > ARCHIVE4_15326,0 > ARCHIVE4_15327,0 > ARCHIVE4_15328,1 > ARCHIVE4_15329,0 > ARCHIVE4_15330,2 > ARCHIVE4_15331,56 > ARCHIVE4_15332,0 > ARCHIVE4_15333,0 > ARCHIVE4_15334,0 > ARCHIVE4_15335,0 > > > These is my text file I need to modify the the line ARCHIVE4_15331,56 > to ARCHIVE4_15331,0 > > > I use this command to modify the text file but the output redirect to saved > in another file. But i need to save the output in same file. If any body > give me the suggestion. > > sed -e 's/ARCHIVE4_15328,0/ARCHIVE4_15328,1/g' test1.txt > test.txt > > > JUST USE THE BELOW COMMAND sed -e 's/ARCHIVE4_15331,56/ARCHIVE4_15331,0/g' test2>dum|cp dum test2 _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
