Greetings, especially to the
linuxquestions.org regulars.
Here is the story:
I downloaded a book which consisted of many text files, one file for each chapter, and saved them all in one directory. When I navigated to the folder using the Nautilus file manager, throught GNOME, when I double-clicked on the first chapter file
CHAP1.TXT it did not open while the second chapter, and all others, open in the GEdit (the default GNOME text editor).
I opened a console window and when I tried to view the files using
cat there were no
obvious problem. Then I thought I should use the
file command to see if there is any problem. And here follows the output:
Code:
olspookishmagus@debian-sarge:~/linux_guides/foo_book$ file CHAP1.TXT
CHAP1.TXT: ISO-8859 English text, with CRLF, CR line terminators
olspookishmagus@debian-sarge:~/linux_guides/foo_book$ file CHAP2.TXT
CHAP2.TXT: ASCII English text, with CRLF, CR line terminators
And here is the question:
How I could, if I can alter the filetype of CHAP1.TXT so that it can match the others plus I can open it with GEdit?
Thought, it is irrelevant here is my system set-up:
Debian 3.1 (Sarge), GNOME
I hope this is not an inappropriate section and
thanks in advance.