I'm trying to clean up some files on a Linux NAS. They were transferred over from old storage years ago now files and folders include the newline character "\n" at the beginning and end of the file\folder name.
If I look at them "ls -lab" I get something that looks like this:
\n Folder_Name \n
A similar post helped me remove the "\n" from the beginning of the filename but the one at the end is lingering.
(rename $'\n' '' *)
I want to promise myself that I did this, but apparently I didn't Thank you!
– Ian Young Jul 27 '19 at 01:42