07-29-2019
You can find it in man test.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there,
I'm very surprised that I can't find this myself and I'm sorry to bother you with such a stupid question. I just want to write a test with one condition or another one. I want either the first argument to be equal to 'this' or the second argument to be equal to 'that'.
~$ cat test
((... (3 Replies)
Discussion started by: chebarbudo
3 Replies
2. Shell Programming and Scripting
I have a shell script, what i want to do is to use the test command and test it, but to be honest with you i really don't know,
can someone give me some advices and how to use it?
I have looked on the internet and saw some commands and scripts but the thing is where to start.....to test... (6 Replies)
Discussion started by: foottuns
6 Replies
3. Shell Programming and Scripting
if -o ]
then
echo "Expected valid value"
The above multiple if condition is NOT working in my script.
I am getting the error as '-a' not expected. Can anyone help with the syntax for this? (5 Replies)
Discussion started by: dinesh1985
5 Replies
4. Shell Programming and Scripting
This is the code:
while test 1 -eq 1
do
read a
$a
if test $a = stop
then
break
fi
done
I read a command on every loop an execute it.
I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test.
For example echo hello.
Now the... (1 Reply)
Discussion started by: Max89
1 Replies
5. Shell Programming and Scripting
How to check weather a string is like test* or test* ot *test* in if condition (5 Replies)
Discussion started by: johnjerome
5 Replies
6. UNIX for Dummies Questions & Answers
I want to create an IF condition with multiple condition, in the statement below I want to add OR EOF, can any one please advise how to do.
if } != $sample ] && ; then
echo .....
fi
code tags please (1 Reply)
Discussion started by: analyst
1 Replies
7. Shell Programming and Scripting
I have written this script. This is used for creating a backup folder.
#!/bin/sh
#set -x
. /home/.profile
usage="Usage is $0"
usage="$usage "
# Use the getopt utility to set up the command line flags.
set -- `/usr/bin/getopt b: $*`
# Process individual command line arguments
while ;... (1 Reply)
Discussion started by: arijitsaha
1 Replies
8. Shell Programming and Scripting
Hi, guys.
In Linux Shell script, how can I check a string whether meets some conditions.
e.g.:
If a string str must start with a underscore or a alphabet, and it must contains at least one lowercase, one uppercase, one numeric and one punctuation, and its length must be more than 8 characters... (2 Replies)
Discussion started by: franksunnn
2 Replies
9. UNIX for Dummies Questions & Answers
Hi Guys,
I am new to shell script.I need your help to write a shell script.
I need to write a shell script to extract data from a .csv file where columns are ',' separated.
The file has 5 columns having values say column 1,column 2.....column 5 as below along with their valuesm.... (1 Reply)
Discussion started by: Vivekit82
1 Replies
10. Shell Programming and Scripting
Hi All,
I am trying to place one SQL query in Shell Script with Where Condition as Status='1' But after running the the script it is returning error as
SQL0206N "1" is not valid in the context where it is used. SQLSTATE=42703
The query is working fine in Data Base.
Please suggest... (1 Reply)
Discussion started by: sumanmca2006
1 Replies
LEARN ABOUT DEBIAN
ns_for
ns_lctl(3aolserver) AOLserver Built-In Commands ns_lctl(3aolserver)
__________________________________________________________________________________________________________________________________________________
NAME
ns_for, ns_foreach, ns_while, ns_lctl - Replacements for standard Tcl loop commands which enable monitoring and control
SYNOPSIS
ns_for start test next body
ns_foreach varname list body
ns_foreach varlist1 list1 ?varlist2 list2 ...? body
ns_while test body
ns_lctl cancel id
ns_lctl eval id script
ns_lctl info id
ns_lctl install command
ns_lctl list
ns_lctl pause id
ns_lctl result id
_________________________________________________________________
DESCRIPTION
The ns_for, ns_foreach, and ns_while commands are replacements for cooresponding Tcl commands with the additional capability of monitoring
and control through the ns_lctl command.
ns_for start test next body
See the for(n) man page for usage.
ns_foreach start test next body
See the foreach(n) man page for usage.
ns_foreach varlist1 list1 ?varlist2 list2 ...? body
See the foreach(n) man page for usage.
ns_while test body
See the while(n) man page for usage.
ns_lctl cancel id
Mark the given loop to cancel at the next iteration, resulting in the loop returning with TCL_ERROR.
ns_lctl eval id script
ns_lctl info id
ns_lctl install command
ns_lctl list
ns_lctl pause id
ns_lctl result id
SEE ALSO
for(n), foreach(n), while(n)
KEYWORDS
threads, iteration, list, looping, cancel
AOLserver 4.5 ns_lctl(3aolserver)