tr -d '[\200-\377]' <infile >outfile -d deletes
\200-\377 is all non-ascii characters <infile> is the http.conf you have outfile is the stream output brett On Wed, 2003-07-30 at 07:47, Voytek Eymont wrote: > I just edited httpd.conf on a non-*nix machine, and, now have have lots of > CtrlMs in the file: > > I uploaded the file back to linux machine, and, it seems OK, it looks OK in > an editor, though, mc shows the CtrlM > > I know there is the issue of CR/LF vs LF vs CR DOS/*nix/Mac, BUT will it > cause real problems ? > > - what can I use to strip the CR ? > - will it cause any prbs if I was to leave the CR in the httpd.conf ? > > > > > Voytek Eymont -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
