Hello,
I would assume the expression ^$ should match a null string. Yet when I run:
echo -n | sed 's/^$/nullstring/'
I get no output.
Can anyone tell me why? (6 Replies)
I'm using the URL Regex feature of Squid for allowing sites via a list of regex strings to match allowed domains. The regex was actually copied from our previous proxy solution and it seemed to "just work". But, we've recently discovered that some domains (likely due to virtual hosts or host... (2 Replies)
Hi ,
I am very new to unix as well as shell scripting. I have to write a script for the following requirement.
In a particular mount, have to list all the directories and sub directories along with size of the directory and sub directory in ascending order.
Please help me in this regard and many... (4 Replies)
Hi,
Please help me, how to get all the direcotries, its sub directories and its sub directories recursively, need to exclude all the files in the process.
I wanted to disply using a unix command all the directories recursively excluding files.
I tried 'ls -FR' but that display files as... (3 Replies)
Hi,
I need to find the list of matching direcories in current folder only and no subfolders on AIX.I tried -maxdepth option but its not working.
Also, tried ls -d option to list the matching directories but getting argument list too long...
So, any help would be appreciated. (6 Replies)
I have a variable strLst containing a list of strings. I want to create a function that takes the list and an error message. If the number of strings is 0 or greater than 1, I print the error message. (1 Reply)
Can anyone come up with a unix command that lists
all the files, directories and sub-directories in the current directory
except a folder called log.?
Thank you in advance. (7 Replies)
I am trying to eliminate an error message from a script. This is the error message:
find: stat() error /usr/openv/netbackup/db/images/KUMAX: No such file or directory
if ];
then
runthiscommand=`su nxadm -c "ssh -t $new3 exec /bin/sh -s">/tmp/filew3 2>/tmp/error.txt<<EOF
... (1 Reply)
It is for HP-Unix B.11.31.
Requirement:
1. List the directories, having given pattern in the directories name, sorted by creation date.
Example: Directories with name "pkg32*" or "pkg33*"
2. On the output of 1. list the directories by creation date as sort order, with creation date... (2 Replies)
Hi All,
I am new to shell scripting. I have a requirement as part of my job to find out null/empty values in column 2 and column 3 from a CSV file and exit the further execution of script by displaying a simple error message.
I have developed a script to do this by reading various articles... (7 Replies)
Discussion started by: tpk
7 Replies
LEARN ABOUT ULTRIX
xfreefontpath
XSetFontPath(3X11) MIT X11R4 XSetFontPath(3X11)Name
XSetFontPath, XGetFontPath, XFreeFontPath - set, get, or free the font search path
Syntax
XSetFontPath(display, directories, ndirs)
Display *display;
char **directories;
int ndirs;
char **XGetFontPath(display, npaths_return)
Display *display;
int *npaths_return;
XFreeFontPath(list)
char **list;
Arguments
directories
Specifies the directory path used to look for a font. Setting the path to the empty list restores the default path defined for
the X server.
display Specifies the connection to the X server.
list Specifies the array of strings you want to free.
ndirs Specifies the number of directories in the path.
npaths_return
Returns the number of strings in the font path array.
Description
The function defines the directory search path for font lookup. There is only one search path per X server, not one per client. The
interpretation of the strings is operating system dependent, but they are intended to specify directories to be searched in the order
listed. Also, the contents of these strings are operating system dependent and are not intended to be used by client applications. Usu-
ally, the X server is free to cache font information internally rather than having to read fonts from files. In addition, the X server is
guaranteed to flush all cached information about fonts for which there currently are no explicit resource IDs allocated. The meaning of an
error from this request is operating system dependent.
can generate a error.
The function allocates and returns an array of strings containing the search path. When it is no longer needed, the data in the font path
should be freed by using
The function frees the data allocated by
Diagnostics
Some numeric value falls outside the range of values accepted by the request.
Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument
defined as a set of alternatives can generate this error.
See AlsoXListFont(3X11), XLoadFonts(3X11)
X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys
XSetFontPath(3X11)