Originally Posted by druuna
Hi, thank you for the comm tool. It worked perfectly. so I was wondering if you could help me streamline my process. right now Both prodlist and manlist are unsorted. So, I manually issued sort commands like so,
sort -u prodlist > prodlist1
sort -u manlist > manlist1
and then I am applying the
comm -12 prodlist manlist | wc -l
command to look for the count.
I guess what I wanted to ask was, how would I combine it so that I avoid the intermediae step of saving a sorted file separetely. Like I want to do something like this but the output is obviously wrong...
sort -u prodlist1 manlist1 | comm -13 prodlist manlist