Skip to content
/ ch Public

The ch(checker tool) project is the tools for checking two file contents if are the same

Notifications You must be signed in to change notification settings

yuzchen7/ch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Checker

To check two text file to see if both are having to some contents

Installation

Clone or download this project or just the bin directory, and set the bin directory in system environment variable.

Usage

  • command:

        # compare two file if the contents are the same or not
        ch file1.txt file2.txt
    
        # help command (man)
        ch -m
    
        # display the version of Checker
        ch -v
    
        # compare the two file without(Ignore) the space
        ch -s file1.txt file2.txt
    
        # compare the two file without(Ignore) the Substring
        ch -c 'Substring' file1.txt file2.txt
    • NOTE: if enter file is more then 2, it will compare the last two enter file

  • result with compare two file:

    • without any arguments, display:

          check: no file arguments
    • file are not found or can not able to open, display:

          # Error on the first file
          input file1 error : File not Found error
      
          # Error on the second file
          input file2 error : File not Found error
    • two file not the same, display:

          # "line #" represent the lines with different content
          result is -> false : line #
      
          # one of the file has more contents the other file, "line #" represent starts with this line, and there is more contents to follow
          result is -> false : line # and keep on
      • Checker will terminates immediately as soon as it finds a different line and output the result.

    • two file are the same, display:

          result is -> true : all line Match

DEPENDENCY

wingetopt:

Version

  • v 1.4.0 Beta

  • Yuz.chen (Yuzhuang Chen)

About

The ch(checker tool) project is the tools for checking two file contents if are the same

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published