>
> 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.
_
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
> 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
> 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
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
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
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
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 "'