[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sed v3.0.2 running on NT4.0
From: |
Chan, Philip |
Subject: |
sed v3.0.2 running on NT4.0 |
Date: |
Wed, 28 Mar 2001 14:02:14 -0500 |
There are 1 problem and 1 question.
First, after a substitute, all CR\LF get change to LF
sed -e "s/old/new/g" old.txt > new.txt
C:\testbat\ies>od -c old.txt
0000000 o l d n e e d t o b e r
0000020 e p l a c e d . \r \n
0000032
C:\testbat\ies>od -c new.txt
0000000 n e w n e e d t o b e r
0000020 e p l a c e d . \n
0000031
Then, I try to match LF and change it to CR\LF, the match do not work.
sed -e "s/\0x0A/\0x0D\0x0A/" new.txt >new2.txt
How do you specify control characters in MSDOS ?
- sed v3.0.2 running on NT4.0,
Chan, Philip <=