Search Results

Search: Posts Made By: dsjkvf
3,385
Posted By dsjkvf
so, as I supposed after your first answer, it...
so, as I supposed after your first answer, it seems that it just can't use a two-line search pattern, but can only operate split lines as a substitute pattern.
3,385
Posted By dsjkvf
I'm on Mac OS X 10.5.8 :). however, if I use...
I'm on Mac OS X 10.5.8 :).

however, if I use GNU sed version 4.1.5 (from ports) then, yes, it works without errors, but also without any results, I'd say: the sed command above we were testing...
3,385
Posted By dsjkvf
no, backslash doesn't help: dsjkvf on Penelope...
no, backslash doesn't help:
dsjkvf on Penelope @ ~/tmp/devel> cat data
<date>some_date</date>
<text>some_text</text>
<name>some_name</name>
dsjkvf on Penelope @ ~/tmp/devel> echo data | sed...
3,385
Posted By dsjkvf
but I can split the substitute pattern over two...
but I can split the substitute pattern over two lines with sed. e.g.:
sed 's/\([0-9A-Za-z]\),\([0-9A-Za-z]\)/\1 \
\2/g'
so, I probably cannot split search pattern, that's why I saw that error?
3,385
Posted By dsjkvf
great, thank you! now I've just should...
great, thank you!

now I've just should figure for myself what all those mysterious perl switches do :).
3,385
Posted By dsjkvf
thanks! but now it only changes the first array...
thanks! but now it only changes the first array of data, operates with the first three lines (and I have a lot of all those <date></date><text></text><name></name>).

so, I wonder, how to make it...
3,385
Posted By dsjkvf
Swapping three lines
I have some text:
<date>some_date</date>
<text>some_text</text>
<name>some_name<name>


and I want to transform it to smthng like that:
some_name on some_date: some_text

I've tried...
2,324
Posted By dsjkvf
any news here? :) for now i'm using 'less'...
any news here? :)

for now i'm using 'less' as a filter, so it makes a pause, and i'm able to see an output.

but may be there is another more stylish decision?
2,324
Posted By dsjkvf
screen question
i'm using Screen version 4.00.02 (FAU) 5-Dec-03 (under FreeBSD / Mac OS X). and the problem is the following: i usually run mc in screen and also usually run various commands from mc, which is...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 04:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy