11-06-2016
This request is very difficult to read/interpret. Examples of input and desired output data, demonstrating the logics to be applied, would definitely help. And, maybe a demo run with some defined values, e.g. for filesetcode.
As a general remark, that script seems a bit overcomplicated...
And, what do you mean with "mask" - eliminate column? Overwrite with a constant?
This User Gave Thanks to RudiC For This Post:
9 More Discussions You Might Find Interesting
1. AIX
What I want to do is just delete some lines from a text file, I know it's easy using copy and redirect function, but what I have to do is edit this file (delete the lines) directly, as new lines may be added to the text file during this period. Can AIX do this ?
# cat text
1:line1
2:line2... (3 Replies)
Discussion started by: dupeng
3 Replies
2. Shell Programming and Scripting
Since i'm new to scripting i'm findind it difficult to code a script. The script has to be an executable with 2 paramters passed to it.The Parameters are
1. The Control file name(.ctl file)
2. The Data file name(.csv file)
Does anybody have an idea about it? :confused: (3 Replies)
Discussion started by: Csmani
3 Replies
3. Shell Programming and Scripting
eg.
file 1 has:
4 0 8628380 653253 0 0 0 0 0 0
2 0 8626407 655222 0 0 0 0 0 0
4 0 8633729 647892 0 0 0 0 0 0
5 0 8646253 635367 0 0 0 0 0 0
file 2 has:
4798 48717 11554
5408 56487 14359
6010 58415 15220
5541 41044... (2 Replies)
Discussion started by: netbanker
2 Replies
4. Shell Programming and Scripting
Request if some one could provide me shell script that converts the below "input file" to "CSV format file" given
Name Domain Contact Phone Email Location
----------------------- ------------------------------------------------ ------- ----- ---------------------------------... (7 Replies)
Discussion started by: sreenath1037
7 Replies
5. Solaris
Hi guys. Good day, morning, afternoon or night, depending on where you live.
I have a script shell in which I am looping on files (absolute path) see code section above.
I always have an error: bad substitution.
:wall:
Is it because my variable file is the index of the loop and not a normal... (4 Replies)
Discussion started by: soueric
4 Replies
6. Shell Programming and Scripting
Hi Friends,
Could you guys help me out of this problem... I need to send an email to all the users and the email has to be picked from the text file.
text file contains the no. of records like:
giridhar
224285
847333
giridhar276@gmail.com
ramana
84849
33884
venkata.ramana@gmail.com... (6 Replies)
Discussion started by: giridhar276
6 Replies
7. UNIX for Dummies Questions & Answers
I need to write a C-Shell script with these properties: It should accept two arguments on the command line. The first argument is the name of a file which contains a list of names, and the second argument is the name of a directory. For each file in the directory, the script should print the... (1 Reply)
Discussion started by: cerce
1 Replies
8. Shell Programming and Scripting
Hi experts,
I want to convert a txt file having rows and columns (CNAI_DUMP_raw.txt) by comparing it with another text file (paramaters.txt) and generate a output in CSV which contains only 3rd column from CNAI_DUMP_raw.txt, and the columns mentioned in parameters.txt.
FYI: There are two... (16 Replies)
Discussion started by: Gautam Banerjee
16 Replies
9. Shell Programming and Scripting
Not sure if this is the correct forum for this question. I have two files. file1.zip, file2
Input:
file1.zip
col1, col2 , col3
a , b , 0:0:0:0:0:c436:9346:d40b
x, y, 0:0:0:0:0:880:39f9:c9a7
m, n , 0:0:0:0:0:80c7:9161:fe00
file2.txt
col1
c4:36:93:46:d4:0b... (1 Reply)
Discussion started by: anil.v
1 Replies
LEARN ABOUT HPUX
xhpgetexteventmask
XHPGetExtEventMask(3X) XHPGetExtEventMask(3X)
NAME
XHPGetExtEventMask - Get an extension event mask.
SYNOPSIS
int XHPGetExtEventMask (display, event_constant, event_type, event_mask)
Display *display;
long event_constant;
long *event_type; /* RETURN */
Mask *event_mask; /* RETURN */
ARGUMENTS
display Specifies the connection to the X server.
event_constant
Specifies the constant corresponding to the desired event.
event_type Specifies the address of a variable in which the server can return the event type of the desired event.
event_mask Specifies the address of a variable in which the server can return the event mask for the desired event.
DESCRIPTION
This request is provided to support the use of input devices other than the X pointer device and X keyboard device.
This request is part of an HP-proprietary extension to X. Its functionality has been superseded by macros defined in the standard X input
device extension header file XInput.h. You should use the standard input device extension instead of XHPGetExtEventMask if possible.
XHPGetExtEventMask is used by client programs to determine the event mask to be used in selecting extended events. The request passes a
constant to the server that corresponds to the desired event. The server returns the event mask and event type for the desired event.
Valid constants that may be used by the client to request corresponding event masks and types are:
HPDeviceKeyPressreq
HPDeviceKeyReleasereq
HPDeviceButtonPressreq
HPDeviceButtonReleasereq
HPDeviceMotionNotifyreq
HPDeviceFocusInreq
HPDeviceFocusOutreq
HPProximityInreq
HPProximityOutreq
HPDeviceKeymapNotifyreq
For example, if an X system was configured with an extension key device, and a client program had determined the device ID of that device
via XHPListInputDevices, and the client program wished to receive key presses from that device in window win, it would do the following:
#include <XHPlib.h>
Display display;
Window win;
XID deviceid;
long devicekeypresstype;
Mask devicekeypressmask;
(connection to the X server)
(determining the device id via XHPListInputDevices)
XHPGetExtEventMask (display, HPDeviceKeyPressreq,
&devicekeypresstype, &devicekeypressmask);
XHPSelectExtensionEvent (display, window, deviceid,
devicekeypressmask);
XNextEvent (display, &event);
if (event.type == devicekeypresstype)
(process the event)
BadEvent The constant passed was not one of the valid constants.
RETURN VALUE
Returns the mask if successful, -1 if failed.
FILES
none
ORIGIN
Hewlett-Packard Company
SEE ALSO
XHPListInputDevices(3x)
XHPSelectExtensionEvent(3x)
XHPGetCurrentDeviceMask(3x)
X Version 11 Release 5 XHPGetExtEventMask(3X)