IT-DISCUSS Archives

June 2006

IT-DISCUSS@LIST.UVM.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Kent G. Saunders" <[log in to unmask]>
Reply To:
Technology Discussion at UVM <[log in to unmask]>
Date:
Wed, 28 Jun 2006 12:04:41 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (55 lines)
Could try looking here for more tcsh help.

http://www.tcsh.org/tcsh.html/Builtin_commands.html#if

Curt Duncan Taylor wrote:
> OK, ok, I'm calmer now.
> 
> It appears that I am using tcsh and have chosen a scripting language for 
> which there is no ready reference. I'll google a bit before I try 
> changing to bash. I suspect that when I make the change everything will 
> blow up and I will wish I had switched to Perl several months ago. Oh well.
> 
> Course I still don't know how to write an 'if' statement, but may be 
> able  to get beyond random combinations of if, then, then;, end-if, 
> endif, fi, -if etc. etc. ad insanitatum.
> 
> Thanks for the help. It is much appreciated.
> 
> cdt
> 
> 
> Quoting Wesley Alan Wright <[log in to unmask]>:
> 
>> On Jun 28, 2006, at 11:30 AM, Curt Duncan Taylor wrote:
>>
>>>
>>>
>>> Shouldn't someone be able to say - "OK, because you don't specify  
>>> otherwise in your script, you are using this scripting language  
>>> version x.xxxx and you can get up-to-date documentation at this web  
>>> site?"
>>>
>>
>> OK, how bout this: make this the first line in the script
>>
>>     #!/bin/bash
>>
>> And then you know it will use bash.
>>
>> (who-what-how launches your script? there might be some clue there  
>> what shell it is using)
>>
>> Documentation
>>
>>     http://www.google.com/search?q=shell+scripting+bash
>>
>>
>>> AllIwanando is write a working "if" statement.
>>>
>>> Sorry, if this sounds a little rantish.
>>
>> Sorry, this is a University, an Institution of Higher Learning. You  
>> must learn something (more than you asked for) from this experience.
>>

ATOM RSS1 RSS2