mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2025-01-09 08:07:55 +00:00
parallel.pod: Example of diff between all files in same dir.
This commit is contained in:
parent
987f90d929
commit
378ecf6831
|
@ -1975,6 +1975,18 @@ can be written like this:
|
|||
B<parallel echo {1} {2} ::: M F ::: S M L XL XXL | sort>
|
||||
|
||||
|
||||
=head1 EXAMPLE: Finding the lowest difference between files
|
||||
|
||||
B<diff> is good for finding differences in text files. B<diff | wc -l>
|
||||
gives an indication of the size of the difference. To find the
|
||||
differences between all files in the current dir do:
|
||||
|
||||
B<parallel --tag 'diff {1} {2} | wc -l' ::: * ::: * | sort -nk3>
|
||||
|
||||
This way it is possible to see if some files are closer to other
|
||||
files.
|
||||
|
||||
|
||||
=head1 EXAMPLE: for-loops with column names
|
||||
|
||||
When doing multiple nested for-loops it can be easier to keep track of
|
||||
|
|
Loading…
Reference in a new issue