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
XListFonts(3X11)						     MIT X11R4							  XListFonts(3X11)

Name
       XListFonts, XFreeFontNames, XListFontsWithInfo, XFreeFontInfo - obtain or free font names and information

Syntax
       char **XListFonts(display, pattern, maxnames, actual_count_return)
	  Display *display;
	  char *pattern;
	  int maxnames;
	  int *actual_count_return;

       XFreeFontNames(list)
	  char *list[];

       char **XListFontsWithInfo(display, pattern, maxnames, count_return, info_return)
	  Display *display;
	  char *pattern;
	  int maxnames;
	  int *count_return;
	  XFontStruct **info_return;

       XFreeFontInfo(names, free_info, actual_count)
	  char **names;
	  XFontStruct *free_info;
	  int actual_count;

Arguments
       actual_count
		 Specifies the actual number of matched font names returned by

       actual_count_return
		 Returns the actual number of font names.

       count_return
		 Returns the actual number of matched font names.

       display	 Specifies the connection to the X server.

       info_return
		 Returns a pointer to the font information.

       free_info Specifies the pointer to the font information returned by

       list	 Specifies the array of strings you want to free.

       maxnames  Specifies the maximum number of names to be returned.

       names	 Specifies the list of font names returned by

       pattern	 Specifies the null-terminated pattern string that can contain wildcard characters.

Description
       The function returns an array of available font names (as controlled by the font search path; see that match the string you passed to the
       pattern argument.  The string should be ISO Latin-1; uppercase and lowercase do not matter.  Each string is terminated by an ASCII null.
       The pattern string can contain any characters, but each asterisk (*) is a wildcard for any number of characters, and each question mark (?)
       is a wildcard for a single character.  The client should call when finished with the result to free the memory.

       The function frees the array and strings returned by or

       The function returns a list of font names that match the specified pattern and their associated font information.  The list of names is
       limited to size specified by maxnames.  The information returned for each font is identical to what would return except that the per-char-
       acter metrics are not returned.	The pattern string can contain any characters, but each asterisk (*) is a wildcard for any number of char-
       acters, and each question mark (?) is a wildcard for a single character.  To free the allocated name array, the client should call To free
       the the font information array, the client should call

       The function frees the the font information array.  To free an structure without closing the font, call with the names argument specified
       as NULL.

See Also
       XLoadFont(3X11), XSetFontPath(3X11)
       X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys

																  XListFonts(3X11)
All times are GMT -4. The time now is 08:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy