Hi, I'm having the following problem with the unix sdiff command.
for example if I try sdiff <filename 1> <filename 2>
Where filename 1 and filename 2 contain really long pathnames that I need to compare.
The output I get will be 139 characters long which is the default.
But an output of... (0 Replies)
Hello,
I'm using Sdiff to compare 2 files, I've used this before and it works fine
and still does in some cases.
But it seems to trip up when using combinations of alpha-numeric text.
I created two simple files to test and as you can see it seems to trip up
on the "gr55a" text, any ideas ?
... (2 Replies)
Hi all
I have two files which are essentially the same. However the way an exponent is written is different (i.e. in 1 file, a particular number might be written as 1.43230000E+02 whereas in another it might be 1.4323E2).
If I use SDIFF then the program will merely check the ASCII characters... (1 Reply)
Hi All
I have two large (similar) files that have a unique number in the first column...(the trade id) and then a value for that trade in the second column...delimited by "~". Here is a snippet of what the files look like
10030372~-410682.73
10030490~-4052867.73
10030646~-352592.21... (8 Replies)
Hi,
I'm trying to use sdiff by parsing the output of another command instead of the filename:
sdiff <(echo test1) <(echo test2)However, this seems to cause my terminal session to stop working.
If I use it with normal diff it works fine:
~$ diff <(echo test1) <(echo test2)
1c1
< test1... (4 Replies)
Hi All,
I have been surfing to get some idea on how to compare same files from two different paths.
one path will have oldfiles directory and another path will have newfiles directory. Each main directories will have sub-directories in them and
each sub-directories inturn will have... (3 Replies)
Hi All,
I have written the shell script which does the following :
a. Reads the *.cnf file content from the specified input folder path
b. Grep's some strings from the *.cnf file and writes the output in result file(*.cnf_result.txt) in output folder
c. Now, if we get new version of... (5 Replies)
Hello guys,
I have a problem. I'm trying to use SDiff with two files which are containing spaces.
My problem is that I want to save the output with > in an extra file.
If I try to use it like this.
sdiff "test file1" "test file2" > OutputfileI get this message:
usage: diff ... (11 Replies)
Test::Fixme(3pm) User Contributed Perl Documentation Test::Fixme(3pm)NAME
Test::Fixme - check code for FIXMEs.
SYNOPSIS
# In a test script like 't/test-fixme.t'
use Test::Fixme;
run_tests();
# You can also tailor the behaviour.
use Test::Fixme;
run_tests( where => 'lib', # where to find files to check
match => 'TODO', # what to check for
skip_all => $ENV{SKIP} # should all tests be skipped
);
DESCRIPTION
When coding it is common to come up against problems that need to be addressed but that are not a big deal at the moment. What generally
happens is that the coder adds comments like:
# FIXME - what about windows that are bigger than the screen?
# FIXME - add checking of user priviledges here.
Test::Fixme allows you to add a test file that ensures that none of these get forgotten in the module.
Arguments
By default run_tests will search for 'FIXME' in all the files it can find in the project. You can change these defaults by using 'where' or
'match' as follows:
run_tests( where => 'lib', # just check the modules.
match => 'TODO' # look for things that are not done yet.
);
where
Specifies where to search for files. This can be a scalar containing a single directory name, or it can be a listref containing
multiple directory names.
match
Expression to search for within the files. This may be a simple string, or a qr//-quoted regular expression. For example:
match => qr/[T]ODO|[F]IXME|[B]UG/,
filename_match
Expression to filter file names. This should be a qr//-quoted regular expression. For example:
match => qr/.(:pm|pl)$/,
would only match .pm and .pl files under your specified directory.
HINTS
If you want to match something other than 'FIXME' then you may find that the test file itself is being caught. Try doing this:
run_tests( match => 'TO'.'DO' );
You may also wish to suppress the tests - try this:
use Test::Fixme;
run_tests( skip_all => $ENV{SKIP_TEST_FIXME} );
You can only run run_tests once per file. Please use several test files if you want to run several different tests.
SEE ALSO
Devel::FIXME
AUTHOR
Edmund von der Burg <evdb@ecclestoad.co.uk>
Please let me know if you have any comments or suggestions.
<http://ecclestoad.co.uk/>
ACKNOWLEDGMENTS
Dave O'Neill added support for 'filename_match' and also being able to pass a list of several directories in the 'where' argument. Many
thanks.
LICENSE
Copryight (C) 2008 Edmund von der Burg "<evdb@ecclestoad.co.uk">
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.
perl v5.10.0 2009-03-12 Test::Fixme(3pm)