Hi,
I have a log file which has entries as
Staged 0 records from fn.dat (0 failed)
01/01 01:01:01 I 0 Error Transactions
I want to find out any line that has an entry like "(1 failed)"
or "(2 failed)" or any number in general ( >0 )
similarly it should search for string like "1... (4 Replies)
Hi Experts,
I have called some.txt with the following content.
oracle HYRDSRVIHUB01 pts/0 TESTIHUB 07-JUN-10 CREATE TABLE
TESTIHUB PHONE ... (12 Replies)
hi,
I want to search all files in the current working direcotry and to print in comma (,) seperated output. But I have two patterns to search for.
Files will be in ABC20100508.DAT format.
Search should happen on the format (ABC????????.DAT) along with date(20100508).
I can do a
ls... (2 Replies)
Hi all,
I'm having a problem with some basic piping issues...
I have been able to get in a directory and ls | gsed in order to list every N file for instance:
ls | gsed -n '2~5p'
The thing is I want to be able to copy the output files to a new directory. Basically directory /all has a... (4 Replies)
hi,
i have one file as t1.txt as below
hi
hello
welcome
i want perl script to search for the pattern "abcd" in the file.
if the pattern doesn't exist, i want to insert that pattern at the end of the same file t1.txt
my o/p should be
hi
hllo
welcome
abcd
thank you (3 Replies)
Hi All,
Could anyone please help me, how to put ‘,' character after 3 digits from right to left count,among 17 digits sting. unix scripting
Example - I am having 12345678911234567 digits
Accepted result-- 12,345,678,911,234,567
Note- 12345678911234567 digits will be dynamic at run time, I... (13 Replies)
Hi All,
Am new to both Unix & this Forum - Need some help on a script that I am trying to write:
In a Directory i have few text files which might or might not contain some text that I am trying to find.
Once that text is found in any of the files, it needs to be removed from the file
... (6 Replies)
I am trying to do the following task :
export ENV=aaa
export ENV_PATH=$(cd /apps | ls | grep $ENV)
However, it's not working. What's the way to change to directory and search some file in that directory in single command
Please help. (2 Replies)
hello
i have file with 100k records and each one has certain value that starts at 28th column and certain value that starts at 88th column
e.g. 1st file
<25>1234567 ..... <88> 8573785485
i have aditional file with values which are related to value that starts at 88th column of the... (1 Reply)
Hi All,
Daily I am getting the updated file.
I have to search for this file in all directories and sub directories.
If the file existed in a particular directory then move this updated file to that particular directory.
If the file is not existed in any of the directories then place this... (4 Replies)
Discussion started by: ROCK_PLSQL
4 Replies
LEARN ABOUT HPUX
xsetfontpath
XSetFontPath() XSetFontPath()
Name
XSetFontPath - set the font search path.
Synopsis
XSetFontPath(display, directories, ndirs)
Display *display;
char **directories;
int ndirs;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
directories
Specifies the directory path used to look for the font. Setting the path to the empty list restores the default path defined for
the X server.
ndirs Specifies the number of directories in the path.
Description
XSetFontPath() defines the directory search path for font lookup for all clients. Therefore the user should construct a new directory
search path carefully by adding to the old directory search path obtained by XGetFontPath(). Passing an invalid path can result in pre-
venting the server from accessing any fonts. Also avoid restoring the default path, since some other client may have changed the path on
purpose.
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 specific and are not intended to be used by client applications.
An X server is permitted to cache font information internally, for example, it might cache an entire font from a file and not check on sub-
sequent opens of that font to see if the underlying font file has changed. However, when the font path is changed the X server is guaran-
teed to flush all cached information about fonts for which there currently are no explicit resource IDs allocated.
The meaning of errors from this request is implementation-dependent.
Errors
BadValue
See Also
XCreateFontCursor(), XFreeFont(), XFreeFontInfo(), XFreeFontNames(), XFreeFontPath(), XGetFontPath(), XGetFontProperty(), XListFonts(),
XListFontsWithInfo(), XLoadFont(), XLoadQueryFont(), XQueryFont(), XSetFont(), XUnloadFont().
Xlib - Fonts XSetFontPath()