Page 1 of 1
Ignore part of line as a command-line option
Posted: Thu Mar 31, 2011 6:13 am
by edorchard
I want to ignore part of a line using a regular expression. This works fine but there appears to be no way of setting this as a command-line option. The indirect way is to use the /g option and read options from a file but this seems to not do as requested.
Re: Ignore part of line as a command-line option
Posted: Thu Mar 31, 2011 10:12 am
by psguru
Yes, it has to be done via the /g option. I'm not sure what's not working there: seems to work as advertised last I tested.
Re: Ignore part of line as a command-line option
Posted: Fri Nov 09, 2012 7:00 am
by bps_cmclean
I have been diff'ing 1000's of files each night using a C# wrapper around a command line call to EDP
The options used are
/html /t /w /k /no /nh
which means that only diff reports for files that are actually different are generated each night
This has been working perfectly for a few months, but today the client started to recieve a new batch of files that needed some extra parameters to ignore # or £ characters within a line.
I have been trying to do this on the command line all day and have simply failed miserably!!
The session files don't seem to have any /html or /no information in them and any extra parameters are ignored
The idea of using /g does seem odd as this is supposed to allow you to put the options in a named file but if there is no option to ignore characters in a line based on a RE ... how does that work?
Any help would be great
Calum
Re: Ignore part of line as a command-line option
Posted: Sun Nov 11, 2012 1:36 pm
by psguru
The idea of using /g does seem odd as this is supposed to allow you to put the options in a named file but if there is no option to ignore characters in a line based on a RE ... how does that work?
The way it works is that you can go to the UI Options and set your desired settings (in your case under Options | Compare), then export them to a file. Now you can continue using your /html /no /nh options along withe the /g option, providing it with the options file.