Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Login to participate.

Go Back   TechSpot OpenBoards > OS & Software > The Alternative OS

Can I Use Notepad in Windows to Write UNIX Scripts

Reply
Bookmark / Share this page
Thread Tools
  #1  
Old 04-25-2006
dgower2's Avatar
TechSpot Member
 
Location: USA, PA, Philadelphia
Member since: Mar 2005, 328 posts
Can I Use Notepad in Windows to Write UNIX Scripts

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
Reply With Quote
  #2  
Old 04-25-2006
Didou's Avatar
TS Special Forces
 
Location: Brussels, Belgium
Member since: Feb 2002, 5,821 posts
System specs
Maybe the MS-DOS editor.
Reply With Quote
You can remove this banner by registering, join the TS Community for free.
  #3  
Old 04-25-2006
Nodsu's Avatar
TS Special Forces
 
Location: Estonia
Member since: Feb 2002, 9,430 posts
System specs
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.
Reply With Quote
  #4  
Old 04-27-2006
TechSpot Evangelist
 
Location: has left the building
Member since: Aug 2003, 8,160 posts
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.
Reply With Quote
  #5  
Old 05-08-2006
dgower2's Avatar
TechSpot Member
 
Location: USA, PA, Philadelphia
Member since: Mar 2005, 328 posts
Thanks!

Thanks for the responses.
Reply With Quote
Reply
Thread Tools

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Microsoft Jokes Phantasm66 The Meeting 'spot' 126 05-27-2008 08:45 PM
Win 98 memory above 512meg johnny5 Windows OS 17 03-21-2008 03:49 AM
multiple boot of windows XP Home and windows server 2003...cannot reboot to the xp ho upperfield Windows OS 1 11-01-2006 10:33 PM
Windows Axiom Mutatis Phantasm66 News & Interesting links 2 11-30-2005 08:02 PM
Tweaking Windows 2000 for Audio groovewerx Audio and Video 2 03-26-2002 09:50 AM


All times are GMT -4. The time now is 07:22 AM.