Click here to get back home

How to find all files in a directory with a specific mtime

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
How to find all files in a directory with a specific mtime schms 07-27-2006
Get Chitika Premium
Posted by Dr.Ruud on July 28, 2006, 9:14 am
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Similar ThreadsPosted
To find a quick way to list all files in the directory(and subdirectory) April 21, 2008, 3:46 am
glob in specific directory April 20, 2005, 2:30 pm
trying to find the % of lines with a specific word May 2, 2006, 12:09 pm
Perl to move files by specific size September 15, 2005, 5:46 pm
How to parse out specific data in text files and plugs into the spreadsheet December 6, 2007, 5:40 pm
File::Find doesn't go down thru directory December 13, 2007, 5:27 pm
Find number of sub directories within a directory May 11, 2005, 8:39 am
Can't get perl to find .pm in my own private directory February 4, 2005, 3:06 pm
Wierd issue with File::Find and directory May 12, 2005, 7:35 am
Recursive directory read with File::Find April 22, 2008, 6:43 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap