Re: remove/replace non-ascii characters from file

2006-08-03 Thread Mike McCarty
Johannes Wiedersich wrote: Mike McCarty wrote: garbage (represented as [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@ etc.) I suppose you mean "non-graphic ASCII". Those are NUL characters, which the ASCII *definition* states can be inserted or removed from *any* stream without chan

Re: remove/replace non-ascii characters from file

2006-08-03 Thread Johannes Wiedersich
Mike McCarty wrote: garbage (represented as [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@ etc.) I suppose you mean "non-graphic ASCII". Those are NUL characters, which the ASCII *definition* states can be inserted or removed from *any* stream without changing its meaning. This means t

Re: remove/replace non-ascii characters from file

2006-08-03 Thread Johannes Wiedersich
Thanks to all and thanks for replying so fast. I must have somehow overlooked grep's -a option. Shame on me. But I also knew that there *must* be command to just remove the 'garbage'; I just didn't know how to find out that 'strings' does it. Good that one can always ask debian-user! Johanne

Re: remove/replace non-ascii characters from file

2006-08-03 Thread Mike McCarty
Johannes Wiedersich wrote: I have a silly Window$ application that is supposed to export ascii data. In fact the file is 99% percent ascii (after dos2unix), but contains a line starting with "Comment: " that contains non-ascii garbage (represented as [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL P

Re: remove/replace non-ascii characters from file

2006-08-03 Thread Jim Holland
On Thu, 3 Aug 2006, Johannes Wiedersich wrote: > I have a silly Window$ application that is supposed to export ascii > data. In fact the file is 99% percent ascii (after dos2unix), but > contains a line starting with "Comment: " that contains non-ascii > garbage (represented as [EMAIL PROTECTED

Re: remove/replace non-ascii characters from file

2006-08-03 Thread Matej Cepl
Johannes Wiedersich wrote: > I tried > $ grep -v Comment > but that just returns > Binary file darkaa2.dat matches Would grep -a -v Comment help? grep(1) is your friend. :-) Matěj -- GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC http://www.ceplovi.cz/matej/blog/, Jabber: [EMA

remove/replace non-ascii characters from file

2006-08-03 Thread Johannes Wiedersich
I have a silly Window$ application that is supposed to export ascii data. In fact the file is 99% percent ascii (after dos2unix), but contains a line starting with "Comment: " that contains non-ascii garbage (represented as [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@ etc.) I tried $