Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!usc!apple!agate!darkstar!ucscb.UCSC.EDU!unknown From: unknown@ucscb.UCSC.EDU (The Unknown User) Newsgroups: comp.sys.apple2 Subject: Re: Help Keywords: Programming cshell stuff Message-ID: <11465@darkstar.ucsc.edu> Date: 23 Jan 91 23:00:57 GMT References: <2175@sumax.seattleu.edu> Sender: usenet@darkstar.ucsc.edu Organization: University of California, Santa Cruz; Open Access Computing Lines: 39 In article <2175@sumax.seattleu.edu> kiuchi@sumax.seattleu.edu (Usagi Yojimbo) writes: > > Being a person who has learned programming from an apple computer, I am >having a lot of difficulties in trying to program in the unix via vi editor. There is no such thing as pogramming "in the unix via vi editor"... vi is simply an editor... Like AppleWorks, AppleWriter, WordPerfect, etc... It's just an online "word processor" (although "editor" is more appropriate) Since you seem to be just starting vi also, I'd like to tell you that it DOES get better! Most people (including me) seem to HATE vi for a while, even months/years... But eventually you find out that it can do a HELL of a lot for you, and is actually quite nice... Although another UNIX editor, emacs, allegedly does it better, vi will autoindent for you when you're writing a program... Very handy... Now, I actually -like- vi. I certainly don't use it for actual writing of reports and stuff (I was actually very surprised yesterday when someone I know was using vi to write a report.. He used other tools also that are for use with laser printers) >Questions are: >1)How do I do a for next loop in this language, ex. FOR A =1 TO 1000 :NEXT WHAT language are you using? That's the main question that needs to be answered. The only thing that I can think of as being called "programming in unix" (without using a specific language name), would be programming shell scripts... >2)How do I print the certain number's character string, ex CHR$(A) >3)How do I print variables, ex PRINT A See the answer for #1! -- /Apple II(GS) Forever! unknown@ucscb.ucsc.edu MAIL ME FOR INFO ABOUT CHEAP CDs\ \WRITE TO ORIGIN ABOUT ULTIMA VI //e and IIGS! Mail me for addresses, & info. /