I have to delete lots of Linefeeds (Hex \x0a) in a logfile.
I just have sed to solve the problem. It is a bit complicated I know..
Do you have idea how to solve the problem?
Here is an example textfile: http://s000.tinyupload.com/index.php?file_id=05715208147126674999
hexdump -C hexprob.txt
00000000 45 0a 69 0a 6e 0a 66 0a 61 0a |E.i.n.f.a.|
I use the following code to remove the 'E':
sed -r 's/\x45//g' hexprob.txt | hexdump -C
00000000 0a 69 0a 6e 0a 66 0a 61 0a |.i.n.f.a.|
But if I want to remove the '\x0a' it doesnt work:
sed -r 's/\x0a//g' hexprob.txt | hexdump -C
00000000 45 0a 69 0a 6e 0a 66 0a 61 0a |E.i.n.f.a.|
Do you know what to do? I just dont know why i cant replace or delete it the same way like any other hex value?
Thank you so much! Fake4d