Skip to content

ahuigo/fileset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fileset

This is a shell tool which used to calculate the line set of two file.

Usage

    fileset [OPTIONS] FILE1 {SET_OPERATOR} FILE2

    SET_OPERATOR
        +   Union set
        -   Difference set
        -i  Intersection set
    OPTION
        -h  For help
        -d <delimiter>
            Set delimiter( `,` is default delimiter)
        -f n
            Compare the n'th field(The default is whole line)

Example

    fileset a + b
        Union set of a and b.
    fileset a -  b
        Difference set: a minus b
    fileset a -i b
        Intersection set of a and b.

	$ cat a
	111
	222
	333

	$ cat b
	222
	333

	$ fileset a - b
	111

About

Calculate line set of two files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages