hi, i am newbie in shell so plz dont flame me
i am just experimenting with some tutorial
one of them is replacing words in 'blah.txt' and replace it with a new word and save the changes to blah.txt
like inside the txt has 'Tom and Jerry are Jerry mouse'
say i want to replace Jerry to Bob
i tried using ... sed 's/Jerry/Bob/g' blah.txt .... but that only display the changes and doesn't save the changes, i thought /g means append it .... i tried ... sed 's/Jerry/Bob/g' > blah.txt but not working
and how do u make it case sensitive like if i want replace erry to Bob and the script wouldnt change anything cause it is erry and not 'Jerry'
thanx in advance to whoever help me understand more bout sed
