-
sed Help
Hi all,
I'm having a file called Text.txt
[code]
This is a Test Text File.
[code]
How can i use sed to replace the word 'File' with 'file'
I tried this
Code:
sed -e 's/T/t/g' Txt.txt > Txt.txt
The file Txt.txt is empty now :(
I don't want to redirect result into a tempory file --just want to update the original file.
Any ideas ??? :p
-
Try:
Code:
sed -i 's/File/file/g' Txt.txt
-
Code:
sed -e 's/T/t/g' Txt.txt > Txt.txt
:drown: ...Sorry i actually tried this
Code:
sed -e 's/File/file/g' Txt.txt > Txt.txt
earlier...
Thanks Kieren :) It works with sed -i option. :p