I'm using this command:
ls -R |find . -name "*.avi*" -or -name "*.mp4*" -or -name "*.mkv*" > movies.txt
The problem is the movies are listed twice! Example:
./_NEW/Rogue (2020)/Rogue.2020.1080p.BluRay.x264.AAC5.1-[YTS.MX].mp4
./_NEW/Rogue (2020)/._Rogue.2020.1080p.BluRay.x264.AAC5.1-[YTS.MX].mp4
How can I eliminate the extra line? (./_NEW/Rogue (2020)/._Rogue.2020.1080p.BluRay.x264.AAC5.1-[YTS.MX].mp4
)
I've tried many commands using find
and grep
but they always get listed twice!