The UNIX and Linux Forums  


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 12:01 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-04-2007
Heidi.Ebbs Heidi.Ebbs is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 10
Cool Wordpad or Notepad?

I am new to using UNIX and after uploading a new script to UNIX from Windows using FTP, the script doesn't always work. It seems this depends on the text editor I use and the transfer type. I understand all scripts should be transferred using ASCII, but can you advise which is the best text editor to use out of Notepad and Wordpad?

After doing some research it seems wordpad is most popular, however I had problems with this, and my script now works after opening and saving in notepad as a test document with qoutes encasing the filename.

Please offer any advice on this issue.
  #2 (permalink)  
Old 07-04-2007
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
Quote:
Originally Posted by Heidi.Ebbs View Post
but can you advise which is the best text editor to use out of Notepad and Wordpad?
Provided you save the document in ASCII, using any text editor has no difference. For me I will prefer Notepad because it is a text editor, not a "word processor" that can save text files. But you can just use any other free/commercial text editors on Windows anyway. I will only use notepad when there is no alternative installed because it doesn't do syntax highlighting. For me, I install gvim on Windows. The choice is always yours.

Quote:
however I had problems with this
Most likely you did not save the file as ASCII text, so it may become doc or rtf or something like that.

As a general rule, just make sure you are always saving the script as ASCII text, and always use FTP ASCII mode (if you use Binary mode, you have to use a Windows text editor that supports Unix EOL, and save the script with Unix EOL).
  #3 (permalink)  
Old 07-12-2007
Abdussamad Abdussamad is offline
Registered User
  
 

Join Date: Jul 2007
Location: Karachi, Pakistan
Posts: 1
You should use Notepad as it is a plain text editor while Wordpad is a word processor.
  #4 (permalink)  
Old 08-10-2007
nareshprasanna nareshprasanna is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 1
hi i have a doubt

Quote:
Originally Posted by Heidi.Ebbs View Post
I am new to using UNIX and after uploading a new script to UNIX from Windows using FTP, the script doesn't always work. It seems this depends on the text editor I use and the transfer type. I understand all scripts should be transferred using ASCII, but can you advise which is the best text editor to use out of Notepad and Wordpad?

After doing some research it seems wordpad is most popular, however I had problems with this, and my script now works after opening and saving in notepad as a test document with qoutes encasing the filename.

Please offer any advice on this issue.
Hi you could directly type the required script in unix editor right.
why should you type it in wordpad or notepad and FTP it to UNIX?
  #5 (permalink)  
Old 08-10-2007
Heidi.Ebbs Heidi.Ebbs is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 10
Smile

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

:-)
  #6 (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 11:56 AM.. Reason: Pointed up the difference between CLI and S/A Pico
  #7 (permalink)  
Old 09-03-2007
arungavali arungavali is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 4
NotePad

Notepad is as ASCII as you can get, by my understanding. WordPad still allows for formatting. I would stick with NotePad.
Closed Thread

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 02:07 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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