[lug] Newline in a filename

Timothy C. Klein teece at silverklein.net
Sun Nov 11 10:13:47 MST 2001


I am writing a Perl script that renames files.  I forgot to chomp some
input after I read it from a file, and thus renamed a file with a
newline in the file name.  It looks like this in a directory listing


The question mark is the new line.  When I try to delete by using tab
expansion, the question mark turns into a newline, confusing things.  I
am not sure how to escape the new line character.  How can I delete this


== Timothy Klein || teece at silverklein.net   ==
== ---------------------------------------- ==
== "Hello, World" 17 Errors, 31 Warnings... ==
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20011111/5cfc3644/attachment.pgp>

More information about the LUG mailing list