Hi, I'm totally new to Unix. I'm an MVS mainframer but ran into a situation where a Unix server I have available will help me. I want to be able to remotely connect to another server using FTP, login and MGET all files from it's root or home directory, logout, then login as a different user and do... (1 Reply)
I have a file MyTest.csv saved in Unicode format in Incoming directory, and I have another file called MyTest.csv saved in ANSII format in InProcess Directory.
I need to concatenate the text of both these files and put in another file MyTest.csv which is placed in the root directory.
How do I... (1 Reply)
Hi:
I use the snmpget command everyday. And Im getting tire of writing the same line evertime I have to verify something.
Example of the line:
snmpget -c DreamTeam dal2-hr2 ifAlias.227
The .227 its the circuit interface and also its variable; could be any other number depending on the... (13 Replies)
I have directory structure sales_only under which i have multiple directories for each dealer
example:
../../../Sales_Only/xxx_Dealer
../../../Sales_Only/yyy_Dealer
../../../Sales_Only/zzz_Dealer
Every day i have one file produce under each directory when the process runs.
The requirement... (3 Replies)
Hi, I want to create a batch(bash) file to combine 23 files together. These files have the same extension. I want the final file is save to a given folder. Once it is done it will delete the 23 files.
Thanks for help. Need script. (6 Replies)
Hi,
I have a bunch of files (around 500) with the .log extension and each having a different name. Is there an easy way to concatenate them all into a single file?
I've tried:
cat *.log > complete.log
and it seems that files are overlapping each other...thus the new file is not complete.... (2 Replies)
I have a file named "file1" which has the following data
10000
20000
30000
And I have a file named "file2" which has the following data
ABC
DEF
XYZ
My output should be
10000ABC
20000DEF (3 Replies)
Hi All,
Need your help.
I will need to concatenate around 100 files but each end of the file I will need to insert my name DIRT1228 on each of the file and before the next file is added and arrived with just one file for all the 100files.
Appreciate your time.
Dirt (6 Replies)
Hi
I am trying to learn linux step by step an i am wondering
can i use cat command for concatenate files but i want to place context of file1 to a specific position in file2 place of file 2 and not at the end as it dose on default?
Thank you. (3 Replies)
- Concatenate files and delete source files. Also have to add a comment.
- I need to concatenate 3 files which have the same characters in the beginning and have to remove those files and add a comment and the end.
Example:
cat REJ_FILE_ABC.txt REJ_FILE_XYZ.txt REJ_FILE_PQR.txt >... (0 Replies)
Discussion started by: eskay
0 Replies
LEARN ABOUT HPUX
xqueryextension
XQueryExtension() XQueryExtension()
Name
XQueryExtension - get extension information.
Synopsis
Bool XQueryExtension(display, name, major_opcode_return, first_event_return, first_error_return)
Display *display;
char *name;
int *major_opcode_return;
int *first_event_return;
int *first_error_return;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
name Specifies the name of the desired extension. Uppercase or lowercase is important. If the extension name is not in the Host Por-
table Character Encoding, the result is implementation-dependent.
major_opcode_return
Returns the major opcode of the extension, for use in error handling routines.
first_event_return
Returns the code of the first custom event type created by the extension.
first_error_return
Returns the code of the first custom error defined by the extension.
Returns
True if the extension is present, else False.
Description
XQueryExtension() determines if the named extension is present, and returns True if it is. If so, the routines in the extension can be
used just as if they were core Xlib requests, except that they may return new types of events or new error codes. The available extensions
can be listed with XListExtensions().
The major_opcode_return for the extension is returned, if it has one. Otherwise, zero is returned. This opcode will appear in errors gen-
erated in the extension.
If the extension involves additional event types, the base event type code is returned in first_event_return. Otherwise, zero is returned
in first_event_return. The format of the events is specific to the extension.
If the extension involves additional error codes, the base error code is returned in first_error_return. Otherwise, zero is returned. The
format of additional data in the errors is specific to the extension.
See Volume One, Chapter 15, Other Programming Techniques, for more information on using extensions, and Volume One, Appendix C, Writing
Extensions to X, for information on writing them.
See Also
XFreeExtensionList(), XListExtensions().
Xlib - Extensions XQueryExtension()