Sponsored Content
Top Forums Shell Programming and Scripting How to check weather a string is like test* or test* ot *test* in if condition Post 302396142 by johnjerome on Wednesday 17th of February 2010 10:11:42 PM
Old 02-17-2010
yes * implies wildcard

the string may be abctest123 or test123 or 123test
 

7 More Discussions You Might Find Interesting

1. Linux

In unix how we can test or check race condition in c program by using multi threads

In unix how we can test or check race condition in any c program by using multi thread programming (1 Reply)
Discussion started by: afroze
1 Replies

2. UNIX for Dummies Questions & Answers

In unix how we can test or check race condition in a c program by using multi threads

In unix how we can test or check race condition in any c program by using multi thread programming (1 Reply)
Discussion started by: afroze
1 Replies

3. Programming

In unix how we can test or check race condition in c program by using multi threads

In unix how we can test or check race condition in any c program by using multi thread programming (5 Replies)
Discussion started by: afroze
5 Replies

4. Programming

In unix how we can test or check race condition in a c program by using multi threads

In unix how we can test or check race condition in any c program by using multi thread programming (1 Reply)
Discussion started by: afroze
1 Replies

5. Shell Programming and Scripting

Test on string containing spacewhile test 1 -eq 1 do read a $a if test $a = quitC then break fi d

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

6. Shell Programming and Scripting

Shell script that check the argument passed to it and prints error if test condition is not met

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)
Discussion started by: mukulverma2408
3 Replies

7. UNIX for Dummies Questions & Answers

Bash condition test at the end of string

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
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)
All times are GMT -4. The time now is 02:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy