So I'm trying to find duplicate lines on a repertory that contains multiple files
the test of the command below is working on a folder with a little number of files : grep -T -r . mainfolder | sort -k 2 | uniq -D -f 1
But my problem is that the reel test is a folder with 500000 files and the massage : Argument list too long
Your given command cannot yield a "Argument list too long" error, because the arguments are fixed: -T -r . mainfolder (4) -k 2 (2) -D -f 1 (3)
Please give the full command!
as you can see, on screen shot below, I used it on a repertory with 46 files and I had the result
And used it on a repertory with more than 500000 files and I have the massage: argument too long