Use of set Command in UNIX

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Use of set Command in UNIX
# 1  
Old 02-06-2008
Use of set Command in UNIX

Hi Experts,

I want to know the use of SET command in UNIX.
especially what is the use of follwing set commands.
1. set -o vi
2. set +u
3. set +o vi

Thanks in Advance.
# 2  
Old 02-06-2008
Read the man page for whatever shell your are using.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

SET command

Hi Friends, There is an command that, SET -x I am confused with the SET command , i have gone through man page but still. could anyone advise the same and necessity of the SET command ? Regards, Nantha. (2 Replies)
Discussion started by: Nandy
2 Replies

2. UNIX for Dummies Questions & Answers

Set Command to output a log of every command executed in the script

Hi Guys, I like to output every command executed in the script to a file. I have tried set -x which does the same. But it is not giving the logs of the child script which is being called from my script. Is there any parameters in the Set command or someother way where i can see the log... (2 Replies)
Discussion started by: mac4rfree
2 Replies

3. UNIX for Dummies Questions & Answers

Running set options from the command line and bash command

I'm reading about debugging aids in bash and have come across the set command. It says in my little book that an addition to typing set you can also use them "on the command line when running a script..." and it lists this in a small table: set -o option Command Line... (5 Replies)
Discussion started by: Straitsfan
5 Replies

4. HP-UX

What is the use of command set -- and set - variable?

Hi, I am using hp unix i want to know the use of the following commands set -- set - variable thanks (4 Replies)
Discussion started by: gomathi
4 Replies

5. UNIX for Dummies Questions & Answers

When do we use set command

Hi all, Some clarification regarding the unix set command for ksh env. I read up the man pages, but ended up more blur. Eg. - Turns off -x and -v flags and stops examining argu- ments for flags. - Does not change any of the flags. This option is ... (1 Reply)
Discussion started by: srage
1 Replies

6. UNIX for Dummies Questions & Answers

Set command with {

I am having some issues with what should be a simple script. Using C shell, I am trying to do this - set x = "{test value}" (the { and } are an important part of the data). When I try to reference $x, for example - echo $x I get this result - Missing }. I have tried... (1 Reply)
Discussion started by: keithg
1 Replies

7. Shell Programming and Scripting

how to use set command

i have a script in which i go to a particular dir and list all its file ------------------------------------------------------------------------ #!/bin/ksh if test -d systemProperties then set --`cd systemProperties` for i in * do echo "$i" >> lastm2.txt done fi... (2 Replies)
Discussion started by: ali560045
2 Replies

8. Shell Programming and Scripting

command set

Hello I'm using command "set" to count number of word in file . But I don't know how to get number of lines in file using commnad "set " ?. Please Help. #!/bin/sh set -- `cat $1` echo " $# words " # wc -w $1 (4 Replies)
Discussion started by: scotty_123
4 Replies

9. Windows & DOS: Issues & Discussions

How to set up unix ?

Hi.. I am new unix user. I am now using windows XP. Can I setup unix without formatting my laptop ? I would like to study unix OS to be famililar. Where can I download ( free ) unix OS ? (2 Replies)
Discussion started by: yuki
2 Replies

10. UNIX for Dummies Questions & Answers

set command

I'm using the set command to name and log a file. The problem I'm exeriencing is that, I would like to have the set command overwrite the named logfile and not append to it. Can't seem to get the +o no clobber to work properly. Any help on this would greatly be appreciated. Jimmy (3 Replies)
Discussion started by: jimmyflip
3 Replies
Login or Register to Ask a Question