LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Notepad All it needs is a simple solution - use dos2unix

[ILUG] Notepad All it needs is a simple solution - use dos2unix

V.P.Singh Gill gill_vpsingh at yahoo.com
Wed Nov 7 15:34:30 GMT 2001


Hi,
    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.
Regards
Vijay Gill


----- 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),
> type
> :%s/
> //g <enter>
> to get rid of them. Then save the file and recompile it.
> 
> Note: 
>  is <ctrl>v<ctrl>m
> 
> -- 
> Chat ya later,
> 
> John.
> 
> --
> 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





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell