Solution to this problem is use 'dos2unix' program that ships with RHL. There is no need to go for looking for any kinda characters, etc.
----- Original Message -----
From: "John Madden" <maddenj at csn.ul.ie>
To: <James.Chambers at irishlife.ie>
Cc: <ilug at linux.ie>
Sent: Wednesday, November 07, 2001 11:58 AM
Subject: Re: [ILUG] Notepad
> On Wed, 7 Nov 2001 James.Chambers at irishlife.ie didst pronounce:
>> >if I create a text file in notepad on windows, is it possible to make it
> >executable on linux, I tried chmod +x and changing the owner of the file. No
> >matter what I did it wouldn't execute for me.
> Do you mean that you wrote a perl script or something like that
> in notepad in windows and want to execute it or do you just want
> to read the text file?
>> Linux will read a plain text file, no matter what it was written
> with. The different editors will open it easily (vim, pico,
> emacs) or you can scroll through it with cat filename | more.
>> However, notepad does put the
> at the end of each line so if
> it's a program (perl, c, etc.) they won't compile properly and
> will give errors. So, open up the file with vim (vim filename),
> //g <enter>
> to get rid of them. Then save the file and recompile it.
> is <ctrl>v<ctrl>m
> Chat ya later,
> BOFH excuse #1: clock speed
> Irish Linux Users' Group: ilug at linux.ie>http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!