combining files and testing results

Joachim Backes joachim.backes at rhrk.uni-kl.de
Tue May 14 09:09:19 UTC 2013


On 05/14/2013 10:56 AM, Frank Murphy wrote:
> Having looked at "man join" wasn't sure of it's use here.
>
> Unknown number of files, constant is extension .list
> (For testing purposes only using two)
>
> cat *.list >> output.joined | sort -u
>
> How can I test if the output.joined,
> is indeed the combined two lists with dupes removed.
>
>

Hi Frank,

give

	cat *.list >> output.joined | sort -u | uniq --all-repeated

a try. If the output is empty ===> no dupes!

Kind regards

-- 

Fedora release 19 (Schrödinger’s Cat): Kernel-3.9.2-301.fc19.x86_64

Joachim Backes <joachim.backes at rhrk.uni-kl.de>
https://www-user.rhrk.uni-kl.de/~backes


More information about the users mailing list