----- Original Message ----- From: ""Remy Guo"" <[EMAIL PROTECTED]>
Newsgroups: perl.beginners To: "Perl Beginners" <beginners@perl.org> Sent: Tuesday, August 05, 2008 10:14 PM Subject: question about text operation using regex.
hi all, i have a txt log file and i want to delete the 9th character of each line. how can i do it using regex?...thanks! -Remy
Ooops. Sent it to the poster by mistake. You could do it from the command line perl -pe "8 < length && substr $_,8, 1, ''" logfile.txt > altered_file.txt Chris -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/