FAQ 5.36 Why does Perl let me delete read-only files? Why does "-i" clobber protected fil...
Join us today to reply or post a new message!
or Login as user:
FAQ 5.36 Why does Perl let me delete read-only files? Why does "...
Do you have a question? Post it now! No Registration Necessary.
Now with pictures!
Contact options for registered users
April 30, 2006, 1:03 pm
rate this thread
Repair the corrupted file:
perl -p -i -e 'tr/\r//d' bad_file
Tad McClellan SGML consulting
firstname.lastname@example.org Perl programming
Fort Worth, Texas
Other Related Threads
Recompiling perl from scratch
'invalid token' error and segmentation fault (XML issue?)
Read-Only Files in \Windows directory
Smartphone OS Forum
FAQ 1.3 Which version of Perl should I use?
— Next thread in »
FAQ 6.9 What is "/o" really for?
— Previous thread in »
s suffix question
— Newest thread in »
SSD partition alignment revisited
— The site's Newest Thread. Posted in »
Terms of Service
Web Programming by 1-script.com