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

Re: MS-DOS CR & directory/file timestamping



On Fri, 18 Jul 1997 10:48:11 -0400 , David Oswald wrote:
> 	1) I need to remove the ^m found at the end of each file that is
> created by those rotten NT users. If in vi I issue a "%s/^M//g I do
> remove the ^m but the file system is becoming too large to do this by
> hand.
> 	Can someone please assist me with a script that will enter the         
> /var/www tree and search all *html files and then run a (sed         
> script ?) that would do this for me without any user         
> interaction. (I would run this process probably once a night
> in        			 	a cron job.)
> 
> 	I thought maybe this process would look something like:
>         " find /var/www -name "*html" -ls | awk '{print $11}' " so
> this         would generate a list of my files that need to be opperated
> on,         but I dont know  enough to complete the equation. Any
> assitance         greatly appreciated here... Thanx in advance...
> 

Take a look at the fromdos command, which is in the sysutils package. It
can do just what you want.

Remco




--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: