J
Joerg Moeller
Hello!
I was thinking quite some time if this is the correct group to post to
because actually the problem isn't so much related to the regex but to
os issues. I was wondering if I should post it to unix, msdos,
windows, gnu.... related group but finally decided to try it here
because I hope that here are some experts around with experience in
unix, windows, msdos and gnu. If you could point me to the correct
group I would appreciate it.
Actually the whole problem is that I'm on an Windows 2000 box and need
to use the cygwin diff tool together with a regular expression to omit
some lines. Unfortunately the lines I want to omit contains multiple
occurances of >'<. Even more unfortunately the regular expression for
diff shall be surrounded by >'<. Even if escape the >'< in the regular
expression the diff tool thinks it's the end of the regular expression
and is omplaining about the rest.
Example:
diff -I '^\s*VERSION' aCMNdiskDriveController.contrib1
aCMNdiskDriveController.base
works fine but the regular expression is incomplete. A more complete
expression would be
C:\cygwin\bin>diff -I '^\s*VERSION [\w\d\\_\.\']*'
aCMNdiskDriveController.contrib1 aCMNdiskDriveController.base
What give the following error:
diff: missing operand after `\s*VERSION [\w\d\_\.']*
aCMNdiskDriveController.contrib1 aCMNdiskDriveController.base'
diff: Try `diff --help' for more information.
Anybody an idea what's wrong or how to work around this problem?
Regards
Joerg
I was thinking quite some time if this is the correct group to post to
because actually the problem isn't so much related to the regex but to
os issues. I was wondering if I should post it to unix, msdos,
windows, gnu.... related group but finally decided to try it here
because I hope that here are some experts around with experience in
unix, windows, msdos and gnu. If you could point me to the correct
group I would appreciate it.
Actually the whole problem is that I'm on an Windows 2000 box and need
to use the cygwin diff tool together with a regular expression to omit
some lines. Unfortunately the lines I want to omit contains multiple
occurances of >'<. Even more unfortunately the regular expression for
diff shall be surrounded by >'<. Even if escape the >'< in the regular
expression the diff tool thinks it's the end of the regular expression
and is omplaining about the rest.
Example:
diff -I '^\s*VERSION' aCMNdiskDriveController.contrib1
aCMNdiskDriveController.base
works fine but the regular expression is incomplete. A more complete
expression would be
C:\cygwin\bin>diff -I '^\s*VERSION [\w\d\\_\.\']*'
aCMNdiskDriveController.contrib1 aCMNdiskDriveController.base
What give the following error:
diff: missing operand after `\s*VERSION [\w\d\_\.']*
aCMNdiskDriveController.contrib1 aCMNdiskDriveController.base'
diff: Try `diff --help' for more information.
Anybody an idea what's wrong or how to work around this problem?
Regards
Joerg