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.
/
in front of every line also? – Mateech May 24 '22 at 15:19/
) - you'd just need tocd
to that directory first so that they are all valid relative pathnames. – steeldriver May 24 '22 at 15:40