I am trying remove files by names according this answer How to delete files listed in a text file
But get following error:
rm: cannot remove 'var/Resources/Images/fd29d33d.jpg'$'\r': No such file or directory
I understand that every line in txt file misses an / at the start and something wrong with end of lines: \r in the end (except last file). How can I change this command xargs rm < file to work properly with my file? File contains about 8kk lines
It is not a homework, I am not an admin and need this to be done.