I want merge (union) output from two different commands, and pipe them to a single command.
A silly example:
Commands I want to merge the output:
cat wordlist.txt ls ~/folder/*
In this example, if wordlist.txt contains 5 lines and 3 files, I want
wc -l to return 8.
$cat wordlist.txt *[magical union thing]* ls ~/folder/* | wc -l 8
How do I do that?