I have a PHP code that generates the file name on which wget will append its logs. I generated 2000+ files, but the problem is I am having trouble working with them because I had a mistake of putting PHP_EOL
as part of its name, that code will add
LF/line feed/%0A
at its name
Example of such file name (when accessed via browser, when put on /var/www/html) http://xxxx/wget_01_a%0a.txt
notice the %0a
before the extension name
I messed up, and I wish there's a rename batch that will search through all files and if it found line feed
it would rename it without the line feed so it would just be http://xxxx/wget_01_a.txt
I am not pretty sure how to handle this because seems like when I ls
on putty all special character not limited to that unwanted char becomes ?
, what I only wish to target is that line feed.