Results 1 to 3 of 3
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 ...
- 04-23-2008 #1
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
The file Txt.txt is empty nowCode:sed -e 's/T/t/g' Txt.txt > Txt.txt

I don't want to redirect result into a tempory file --just want to update the original file.
Any ideas ???
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 04-23-2008 #2
Try:
Code:sed -i 's/File/file/g' Txt.txt
Linux User #453176
- 04-23-2008 #3
:drown: ...Sorry i actually tried thisCode:sed -e 's/T/t/g' Txt.txt > Txt.txt
earlier...Code:sed -e 's/File/file/g' Txt.txt > Txt.txt
Thanks Kieren
It works with sed -i option.
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------


Reply With Quote
