Re: How to recover from an XFree86 crash?

2000-11-14 Thread John Summerfield
> > It happens from to time X crashes or locks, then I telnet from another > box and after killing X I find I am unable to restore the console to > normal non graphic mode. How can this be done? Did you try the reset command? resizecons? openvt might be useful too. _

RE: carriage return

2000-11-14 Thread GYGAX,OTTO (HP-Corvallis,ex1)
Here's a perl version of dos2unix that I wrote for a similar purpose. if you save it as dos2unix, you'd type dos2unix < file_to_process > file_processed. #!/usr/bin/perl while ($linein = ) { $linein =~ s/[\r]//g; print "$linein"; } Note that it expects perl in /usr/bin. If you have it so

Re: tr bug in bash ?

2000-11-14 Thread John Summerfield
> Hi all > I've a bash related question: I wish to translate one ascii file into > another one, with only translating the ' occurences, to '' (one quote > to two quotes). > That is, the tr command should be well suited for this purpose, > although the results are not as expected. > No. tr tra

Re: carriage return

2000-11-14 Thread John Summerfield
> On Tue, 14 Nov 2000, John Summerfield wrote: > > >If you store your source code on a FAT (MSDOS) filesystem, you can get he > >filesystem do do the translation on the fly - 'man mount' for details. > > > >It might require some fiddling to keep coordinated though. > > I could be wrong, but I b

Re: carriage return

2000-11-14 Thread Thomas Dodd
Pranita S wrote: > > Hi, > > As many of you suggested to use sed to > get rid of carriage return ; > sed -e "s/\r/\n/g" your_file_name > > your_temp_file_name the correct pattern would be "s/\r\n/\n/g" to replace all CR-NL with just NL. "s/\r//g" should work, but if you have a real CR in the fi

How to recover from an XFree86 crash?

2000-11-14 Thread jfm2
It happens from to time X crashes or locks, then I telnet from another box and after killing X I find I am unable to restore the console to normal non graphic mode. How can this be done? -- Jean Francois Martinez Project Independence: Linux for the Masses http://www.in

Re: carriage return

2000-11-14 Thread Pranita S
Hi, As many of you suggested to use sed to get rid of carriage return ; sed -e "s/\r/\n/g" your_file_name > your_temp_file_name But, this removes all occurances of r . If i use sed -e "s/\\r/\\n/g" your_file_name > your_temp_file_name It does the same thing. Also, in vi when I say set list i

tr bug in bash ?

2000-11-14 Thread Jean Francois ORTOLO
Hi all I've a bash related question: I wish to translate one ascii file into another one, with only translating the ' occurences, to '' (one quote to two quotes). That is, the tr command should be well suited for this purpose, although the results are not as expected. The command: tr -t "'