Friday, September 09, 2005
Sed in MKS is weird
C:\>sh -c "sed -n 's_^///__w xml' < file1"
C:\>cat xml
this line is okay
end
C:\>cat file1
///this line is okay
can not see this line ///
/how about this one//
//and this?
///end
C:\>cat xml
this line is okay
end
C:\> sed -n 's_^///__w xml' < file1
C:\>cat xml
this line is okay
can not see this line
end