Read with Formatting | Join TechSpot! (it's free)



Can I Use Notepad in Windows to Write UNIX Scripts

dgower2
04-25-2006, 09:46 AM
Hi All,

I've been attempting to edit UNIX scripts in Windows, using Notepad, by FTPing the script files to and from the UNIX/Windows machines. It's easier for me than using VI or PICO. However, I think Notepad may be corrupting the script files. Does anyone know if Notepad will, in fact, render UNIX scripts unusable? Do you know of a better way to edit/create UNIX scripts on a Windows box?

TiA

Dan

Didou
04-25-2006, 12:55 PM
Maybe the MS-DOS editor. ;)

Ad
04-25-2006, 12:55 PM

Nodsu
04-25-2006, 02:11 PM
The linefeeds are different in DOS/Windows and Unix - you will have to convert the files.

Some FTP programs can do this automatically. In Unix, there is a program called dos2unix (available for Windows too, I believe).

You can also use some more advanced editor. Crimson Editor supports opening files directly over FTP for example, understands different newlines and you can specify in which format you wish to save the text.

RealBlackStuff
04-27-2006, 01:47 AM
Editors like EditpadPro (www.editpadpro.com) can convert text into Unix-format and v.v.
A version is available for Linux, which I would assume should also work under Unix.

dgower2
05-08-2006, 03:31 PM
Thanks for the responses.

 Tech News

 Downloads
Copyright © 1998-2008 TechSpot.com. TechSpot is a registered trademark. All Rights Reserved.