Maybe I'm missing something or maybe you don't give sufficient details...
Quote:
I have so many lines such as follows. It seems that I got Japanese character crash in my solaris10. How to fix it if possible?
|
If you're suffering an information loss, it may be impossible to restore the file at the original state. By the way, are you sure about what happened? What's a "Japanese character crash"? A file in a locale whose support is not installed in your system may appear unreadable, but that does not mean your file is broken.
Quote:
I want to use sed to take all lines out and change it to another one, But I do not know how to do that? any idea?
|
Take all lines? With sed you can for example look for a regular expression to match some lines, but if you're changing all of them, why don't you replace the entire file? I don't understand how you'll be filtering lines.