Read on full site | Join TechSpot! (it's free) | Bookmark / Share this



Can I Use Notepad in Windows to Write UNIX Scripts

dgower2
04-25-2006, 10: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, 01:55 PM
Maybe the MS-DOS editor. ;)

Ad
04-25-2006, 01:55 PM
  

Nodsu
04-25-2006, 03: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, 02: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, 04:31 PM
Thanks for the responses.

Post a reply, see related topics & more

Tip: Download Advanced SystemCare 3 Free - Clean, Repair, Protect & Optimize your PC.



 Top Technology News

TechSpot Blog: Disable Windows automatic check for solutions after a program crashes

Weekend Open Forum: Google Chrome OS and the future of cloud computing

Tech Tip of the Week: Unearth Region-Specific Windows 7 Themes

Weekend tech reading: How to run Chrome OS as a virtual machine

Sony: PlayStation 3 to be 3D-capable via firmware update

iSuppli: DDR3 to account for over half of DRAM shipments by Q2 2010

Facebook named third most popular video website behind YouTube and Hulu

Patriot introduces new PS-100 SSD series

More Tech News

  
 Software Downloads

Norton Virus Definitions 2003-07 November 20, 2009

AVG Anti-Virus Updates November 20, 2009

Norton Virus Definitions 2008-09 November 20, 2009

avast! Virus Definitions November 20, 2009

McAfee SuperDAT Update 5808

Kaspersky Anti-Virus Update November 20, 2009

Google SketchUp 7.1.6087

More Downloads



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