## sed usage with special characters - text manipulation

sed usage with special characters - text manipulation
# 1
08-09-2009
sed usage with special characters - text manipulation

I'm trying to use sed to replace string in text file but I've some problems with slash and new-line

for example I have to replace this string:

or this string where new-line is in the middle of the string:
"
/>

I'm using this code for the first case but it doesn't work:
cat fileIN.txt | sed -e 's/"/\> signal_rssi="/,/' >> fileOUT.txt
...and I've no idea how to do the second

p.s.
files are gps-Kismet-log and I've to substitute string in order to import data in Matlab
 TheMrOrange View Public Profile for TheMrOrange Find all posts by TheMrOrange
# 2
08-09-2009
it would be better if u give some example from ur inputfile and desired output, and put it in code tags so u can get a quick reply.
 malcomex999 View Public Profile for malcomex999 Find all posts by malcomex999
# 3
08-09-2009
 dr.house View Public Profile for dr.house Find all posts by dr.house
# 4
08-09-2009
For the next one, as mentioned by Malcome, post the input and the expected output. There is not enough details.
 edidataguy View Public Profile for edidataguy Find all posts by edidataguy
# 5
08-09-2009
Quote:
Originally Posted by malcomex999
it would be better if u give some example from ur inputfile and desired output, and put it in code tags so u can get a quick reply.
I get a partial solution. Now the problem is this one:

fileIN.txt:
desired fileOUT.txt:
If I use:
I get this output:
I don't know how to replace empty lines with chars in the line above

## sed with special characters

Hi, I am reading a file (GC_JAR.log) which has entries like: 511725.629, 0.1122672 secs] 525268.975, 0.1240036 secs] 527181.835, 0.2068215 secs] 527914.287, 0.2884801 secs] 528457.134, 0.2548725 secs] I want to replace all the entries of "secs]" with just "secs" Thus, the output...

## help on sed replacing special characters

Hello, I have a file with many lines with below format: \abc\\1234 jkl\\567 def\\345 \pqr\\567 \xyz\\234 Here, i need to do 2 things. 1. replace \\ with \ 2. remove starting \ so output to be as below: