[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dos2Unix (was URL plan)




I wrote a small python script to do the dos2unix thing
then I wanted it to work on the sourcesafe files, so I made it switch the
permissions to write, convert, and switch them back.
And then I also added a preserve time feature (touch it back to the original
time, so it wouldn't upset makes)
And then I also added some extensions it would ignore (like .o)
By now it also mails a list of converted files to the development group.

The emacs syndrom applied to dos2unix.
Scary.

Anyway, I think I still have it somewhere, so if anyone wants it :-)

Chen Shapira
chen@mercury.co.il
#!/usr/bin/perl
-iake_one_down_pass_it_around:_bottles_of_beer:_on_the_wall:99
for(($t,$a,$b,$i)=split/:/,$^I;$i;print){$_="-$i$a$b,-$i$a,-T$t,-".--$i."$a$
b
";s/(-1_.*?e)s/$1/g;y/_-/ \n/}#  

> -----Original Message-----
> From: Eli Marmor [mailto:marmor@elmar.co.il]
> Sent: Thursday, January 20, 2000 10:26 PM
> To: linux-il@cs.huji.ac.il
> Cc: iglu@egroups.com
> Subject: Re: [iglu] Re: The Unified Resource Locator Plan
> 
> 
> > also, the last time i saw the dos2unix package was in 
> redhat 5.2. so you
> > should keep the old ones.
> 
> What's bad with tr, or sed, or awk?
> 
> (instead of asking for the exact commands and force me to open the
> manual, RTFM!)
> 
> -- 
> Eli Marmor
> 
> =================================================================
> To unsubscribe, send mail to linux-il-request@linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request@linux.org.il
> 

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il