Browse our categories and find questions you could answer!
Services
Questions
Thought of a category that is not present? Contact Us!
Sed : simple utilization
Question from Escaped
Reward : 2.00 $
Saturday, Mar 24, 2007 - 2:34 PM PST
Computer -Programming -Shell/Batch

Hello,

I know sed is used to replace strings in text files. I just would like to know the basic syntax of that command.

I.e. : I would like to replace ISO-8859-1 by UTF-8 il all the files of a directory.


 

Helder
Saturday, Mar 24, 2007 - 3:14 PM PST
Helder received 2.00 $ for this answer

You can try this, I think it's what you are requesting :

sed -e 's/ISO-8859-1/UTF-8/' /blahblah/*

Let me know if it's not what you are asking.

 Cheers,