Sunday, 15 January 2012

regex - Insert a word with sed into a text file -


I have a text file and any words like Home before each word that I start I want to insert a file with a lower-case letter, using sed I tried to do it but it is not working:

  sed / s (/ [ ^ Az] + | [az] + / house (^ [az] + | [az] +) / g "text file    

I found this line, is it okay for you?

 
  SAD-RS / B [AG] \ w * \ B / house and / g 'file   

code> Kent echo "Yes No yes no y_e_s _no "| sed -r 's / \ b [az] \ w * \ b / house and / g' home yes no, no house or not y_e_s _no

No comments:

Post a Comment