The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > UNIX Desktop for Dummies Questions & Answers
.
google unix.com



UNIX Desktop for Dummies Questions & Answers Discuss UNIX and Linux user interfaces like GNOME, KDE, CDE, and Open Office here. All UNIX and Linux Newbies Welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Strange Characters After Using Notepad dgower2 Shell Programming and Scripting 4 05-21-2009 11:01 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #8 (permalink)  
Old 09-04-2007
Nysif Steve Nysif Steve is offline
Registered User
  
 

Join Date: Aug 2007
Location: Albany, NY
Posts: 26
Try using one of these free text editors. They have much more functionality.

Textpad
TextPad - the text editor for Windows

Programmers File Editor (PFE)
Programmer's File Editor Home Page
  #9 (permalink)  
Old 08-17-2008
Frostybeard Frostybeard is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 4
The newline characters are different between Unix and Windows. So if you write a script in Windows, it may not work in Unix.

dos2unix is one utility that you can use to clean up your windows text files for use in Unix.
  #10 (permalink)  
Old 09-13-2008
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
  
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 637
i'd say use notepad ...

however ...

regardless of what text editor one uses in windows, one should always get proficient in vi at a minimum --- ed would be even better --- since that would be the only text editor one can get if one runs into server problems and needs to modify files to get things working again ...

  #11 (permalink)  
Old 05-21-2009
SilversleevesX SilversleevesX is offline
Registered User
  
 

Join Date: May 2009
Location: Northeast USA
Posts: 48
If you'd rather stay in the Windows GUI for your scripts in the log run...

... there are two options, and they're both freeware.

* Crimson Editor, which is so great for creating, editing and saving Unix files that I now have it set to edit practically every .dot file in my Cygwin install.

* Alpine, a standalone version of Pine (Unix email client) and Pico (text editor) paired by their authors and onetime maintainers at the University of Washington. The Pico standalone app saves in UTF-8, so it might be worthwhile checking some of its saved output via cat or vi before uploading any of it. I'm partial to Pico and nano anyway, so I was very gratified to find there was a Win32 standalone of the former.

Quote:
Originally Posted by JustIce
regardless of what text editor one uses in windows, one should always get proficient in vi at a minimum --- ed would be even better ---
Here I would have to agree. Even the OS X Terminal, while providing nano (and maybe pico too, nowadays, who knows), installs with vim (vi modified) as the $EDITOR selection in its .bashrc. And most of the helps and how-to's for Mac command-line you find on the Web assume you use vim as your editor.

Hope this was helpful.

BZT

Quote:
Originally Posted by Heidi.Ebbs View Post
Being new to UNIX, using the editor VI has previously proved to be a bit of a challenge and has taken some time to come to terms with the different keys that should be used for navigating around VI.

However, since posting this topic I have been on a UNIX course and have a much better understanding now of permissions, FTP, VI and much more

:-)

Last edited by SilversleevesX; 05-21-2009 at 10:56 AM.. Reason: Pointed up the difference between CLI and S/A Pico
  #12 (permalink)  
Old 05-21-2009
SilversleevesX SilversleevesX is offline
Registered User
  
 

Join Date: May 2009
Location: Northeast USA
Posts: 48
dos2whatever

No panacea that dos2unix (or 'tleast maybe the one I use isn't robust enough).

I've had occasions happen where it left garbage characters (carat-qmark pairings particularly) in files I thought were, at minimum, ASCII and the line-endings just needed tweaking. I find the better approach to be to use a CLI editor or the GUI one I mentioned in my previous post, Crimson Editor.

BZT

Quote:
Originally Posted by Frostybeard View Post
The newline characters are different between Unix and Windows. So if you write a script in Windows, it may not work in Unix.

dos2unix is one utility that you can use to clean up your windows text files for use in Unix.
  #13 (permalink)  
Old 05-21-2009
dgower2 dgower2 is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 7
Thank you

Thanks for all the replies. I ended up learning to edit w/ VI.
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:00 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0