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)
I want to make a script that check for the argument passed to it and generates an error in case any character/string argument passed to it.
I am using below code, but its not working. can anyone help.
#!/bin/bash
if ]; then
echo 'An integer argument is passed to the script hence... (3 Replies)
I want to check (using bash condition test function) if string contains three spaces, ignoring last three spaces at the end of string.
string_to_report='foo bar foo bar '
string_to_ignore='foo bar ' (8 Replies)
Discussion started by: useretail
8 Replies
LEARN ABOUT DEBIAN
cbtest
CBTEST(1) Quick Database Manager CBTEST(1)NAME
cbtest - test cases for QDBM Cabin
SYNOPSIS
cbtest sort [-d] rnum
cbtest strstr [-d] rnum
cbtest list [-d] rnum
cbtest map [-d] rnum
cbtest wicked rnum
cbtest misc
DESCRIPTION
The command `cbtest' is a utility for facility test and performance test. Measure the execution time of the command. This command is used
in the following format. `rnum' specifies the number of records.
cbtest sort [-d] rnum
Perform test of sorting algorithms.
cbtest sort [-d] rnum
Perform test of string locating algorithms.
cbtest list [-d] rnum
Perform writing test of list.
cbtest map [-d] rnum
Perform writing test of map.
cbtest wicked rnum
Perform updating operations of list and map selected at random.
cbtest misc
Perform test of miscellaneous routines.
Options feature the following.
-d : read and show data of the result.
This command returns 0 on success, another on failure.
SEE ALSO qdbm(3), cabin(3)AUTHOR
QDBM was written by Mikio Hirabayashi <mikio@fallabs.com>.
Man Page 2005-06-01 CBTEST(1)