04-05-2008
One way
Jim,
Thanks. Works like a charm.
Regards,
Francis
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
I have file, which has the below content:
line 100
a
b
c
d
line300
a
s
d
f
s
line200
a
s
d
a (3 Replies)
Discussion started by: little_wonder
3 Replies
2. Shell Programming and Scripting
This should follow with my last post but I think it's better to start a new one. Now I have a list of numbers stored in pos.txt:
2
6
7
.
.
.
n
.
.
.
And I need to extract (2n-1, 2n) columns from matrix.txt:
ind1 A B C D E F G H I J K L M N O P Q R ...
ind2 B C D E F G H... (3 Replies)
Discussion started by: Zoho
3 Replies
3. Shell Programming and Scripting
Hi,
I wrote an awk script to analyse file A.
I call the script with files A and B. File A has lines like:
000000033100001
000000036100001
000000039100001
The first 9 characters are interpreted as a line number;
for each line number found I want to output this line number of file B.
... (13 Replies)
Discussion started by: kpg
13 Replies
4. UNIX Desktop Questions & Answers
a. How do I display the content of the file containing what Ive merged using a filter which would display only the lines of the file which don't contain number, for example 3 or 6. (3 Replies)
Discussion started by: herberwz
3 Replies
5. UNIX for Advanced & Expert Users
Hi all
Thanks in advance...........
Please help me for this issue............
I have a file it has 11 records . I used the command like ....
>$ wc -l file
11 file
I'm getting output like 11 file (no.of records along with filename)
here my requirement is, I want to display only... (3 Replies)
Discussion started by: ksrivani
3 Replies
6. Shell Programming and Scripting
Hi,
I have a file that contains strings and numbers. I want to search for a particular string and then print out the numbers next to this string.
For example the file looks like in the file I want to search for the line
AFUE 0.
AOXI 0.
VFUE 600.
VOXI 1573.241
TFUE ... (2 Replies)
Discussion started by: lost.identity
2 Replies
7. Shell Programming and Scripting
Hi
I have requirement to find nth occurrence in a file and capture data from with in lines (between lines)
Data in File.
<QUOTE>
<SESSION>
<ATTRIBUTE NAME='Parameter Filename' VALUE='file1.parm'/>
<ATTRIBUTE NAME='Service Name' VALUE='None'/>
</SESSION>
<SESSION>
<ATTRIBUTE... (6 Replies)
Discussion started by: tmalik79
6 Replies
8. Shell Programming and Scripting
awk 'BEGIN{IGNORECASE=1} /error|warning|exception/ { ++x } END { print x }' filename
The above command returning the number of times the pattern present in the file. But I want the the line number as well. please help me out (6 Replies)
Discussion started by: arukuku
6 Replies
9. Shell Programming and Scripting
Hello All,
I have an awk script which parses my log file and prints number grepping from a specific line/pattern, now i have to come with a shell script to continue reading the log untill the job is completed, which i would know while reading session log untill process encounters a final... (1 Reply)
Discussion started by: Ariean
1 Replies
10. UNIX for Beginners Questions & Answers
I have a directory of files, I can show the number of lines in each file and order them from lowest to highest with:
wc -l *|sort
15263 Image.txt
16401 reference.txt
40459 richtexteditor.txt
How can I also print the number of unique lines in each file?
15263 1401 Image.txt
16401... (15 Replies)
Discussion started by: spacegoose
15 Replies
LEARN ABOUT SUSE
xpinputselected
XpInputSelected(3Xp) XPRINT FUNCTIONS XpInputSelected(3Xp)
NAME
XpInputSelected - Queries which X Print events the client has selected to receive from the specific print context.
SYNOPSIS
cc [ flag... ] file... -lXp [ library... ]
#include <X11/extensions/Print.h>
unsigned long XpInputSelected ( display, context, event_mask )
Display *display;
XPContext context;
unsigned long *all_event_mask_return;
ARGUMENTS
display
Specifies a pointer to the Display structure; returned from XOpenDisplay.
context
Specifies the print context to which the query is being made.
all_event_mask_return
Returns the set of events that any client has selected.
DESCRIPTION
XpInputSelected returns a bit mask describing which event classes the client has selected to receive. The value returned to
all_event_mask_return is the union of every client's event mask. XpInputSelected queries which X Print events from the specified print
context the client has selected to receive. The X Print Events are generated from a print context, and not from a window as is the case
with XSelectInput. As events arrive, the context field in the event is used to determine which print context generated the event. See XpS-
electInput for the event_mask and all_event_mask (??return??) values.
DIAGNOSTICS
XPBadContext The specified print context is not valid.
SEE ALSO
XpSelectInput(3Xp)
X Version 11 libXp 1.0.0 XpInputSelected(3Xp)