learning on my own


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers learning on my own
# 1  
Old 12-03-2001
learning on my own

can i do this? i am learning this on my own..and from the book..simple unix i am not sure if the syntax would work

if [ $1 ]
statement
then
statement
do or for or while
statement
done
else
statement
fi....

I dont know how else to explain that...I hope I made sense of it...
# 2  
Old 12-03-2001
I'm not sure what you are asking. Perhaps a more specific example would help us answer your question.
# 3  
Old 12-03-2001
I guess

#!/bin/ksh
Code:
echo "Enter a team"
        if [$1 ]
        then
        toronto = team
                while [ $1 = toronto ]
                do
                echo "Woo"
                done
        else
        echo "wooo"
fi

moderator, i guess this is what i was talking about...in my book it doesnt show you how to properly structure my previous post....this is self interest and not school work...but the book says this
Code:
if [ $1 ]
then
.........
else
....
fi

and for the while loop
Code:
whatever = no
while [ whatever = no ]
do
....
....
done

so i took it upon myself to make this up to see if it could work...but it wont....i am trying to learn this but it is confusing me...

added code tags --oombera

Last edited by oombera; 02-16-2004 at 05:17 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Regex learning.

Hello All, I have come across a question from colleague about complex regex, so I written a regex using grep's -P option in PCRE regex. Since its a new learning for me, so thought to share with forums. Lets say we have a Input_file with following test data: cat Input_file PROJECT =... (8 Replies)
Discussion started by: RavinderSingh13
8 Replies

2. AIX

Learning AIX from zero.

Dear Sirs: Good afternoon, my name is Javier. I´m new to Unix and I am working as a Linux Server admin in an ISP from Argentina. I´m want to in learn AIX, and find interesting information about it on some IBM Redbooks. I would like to know if is there any possibility to Virtualize an AIX... (8 Replies)
Discussion started by: xavinux
8 Replies

3. What is on Your Mind?

Learning UNIX

Hi Guys , Hope everybody is fine . I am here to learn UNIX . Please provide any URLs/pdfs for learning . Thanks in advance. -Radha ---------- Post updated at 07:59 PM ---------- Previous update was at 07:48 PM ---------- Just to add , I am good at basics but unable to write scripts... (4 Replies)
Discussion started by: radha254
4 Replies

4. Web Development

Learning HTML

I have tried to create a web page browser window. An example, I copied what the book pretty much wanted but get only the header. What should I change? Also Anyone know any good books for this? Many thanks. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Translation/EN" ... (4 Replies)
Discussion started by: N-Training
4 Replies

5. UNIX for Dummies Questions & Answers

Learning VI editor

Hi, Can you give me some good document or link to learn more about "vi" editor. I'm interested to master its short-cut keys and tricks in the VI editor, please help, thank you. (1 Reply)
Discussion started by: Dev_Dev
1 Replies

6. UNIX for Dummies Questions & Answers

Learning Unix

Hi all, and thanks for viewing this thread. I have never used the terminal (UNIX) before, not until I read an introductory book about it: Unix for Mac OS X Tiger. Now I've become intrigued, and I want to uncover more of the mysteries of Unix. I've searched and searched, but there are many books... (5 Replies)
Discussion started by: Hin
5 Replies

7. What is on Your Mind?

Learning UNIX

Alright I am looking to further my knowledge and experiance with computers (Currently a PC technician but not much knowledge with other operating systems like unix/linux). What im trying to do now is get a basic understanding of unix and its commands, unix shells, the unix directory structure, and... (5 Replies)
Discussion started by: Rycon
5 Replies

8. UNIX for Dummies Questions & Answers

Learning UNIX

Hi guys! Am new to this forum so would like to say hello to all. Was wondering, what the best way to learn UNIX was? Theoretically or Practically? Cheers (2 Replies)
Discussion started by: bibah11
2 Replies
Login or Register to Ask a Question