Here is a solution for your issue below (followed by an issue you may have)
If you have two sets of matches, for instance, going with the above example, you had another 'Four'/'Black' further down the file. It will return both groups, not between the groups, but just the groups themselves.. for instance:
Which may be confusing, but it is correct. Hope this helps!
hi gurus,
I am having a file containing a list of tables.i want to find the count of records inside thes tables.
for this i have to connect into database and i have to put the count for all the tables inside another file i used the following loop once all the tablenames are inside the file.
... (1 Reply)
hi....
I have a file having more then thousand lines.
i want to remove selected lines in it.
And also if there exists two duplicate lines, I want to delete one of them.
Please help me with awk and shell.
:confused: (8 Replies)
Hi Gurus,
I have a file say for ex. file1 which has 3500 lines in it which are different account numbers and another file (file2) which has 230000 lines in it. I want to read all the lines in file1 and delete all those lines from file2 which has that same pattern as in file1. I am not quite... (4 Replies)
I have a very large file (10,000,000 lines), that contains a sample id and a property of that sample. I have another file that contains around 1,000,000 lines with sample ids that I want to remove from the original file (create a new file without these lines).
I know how to do this in Perl, but it... (9 Replies)
Hello Everyone
I need your help in fixing this issue., I have a log file which has data of users logging in to an application.
I want to search for a particular pattern in the log
ISSessionValidated=N
If this key word is found , the above 8 lines will contain the name of the user who's... (12 Replies)
Hi,
I am new to shell scripting and is working on a script to extract lines from a log file between two time stamps using awk command. After some research I used following command:
awk '/01 Oct 2011/{p=1} /10 Oct 2011/{p=0} p' test.log >> tmp.log
This works fine. But now i want to... (3 Replies)
Hi,
I have a file with a '|' pipe delimeter. I want to find number of counts for a particular pattern in particular field. Is it possible to do it in a single command?
1) want to find total number of "0" in field 4.
2) want to find total number of different records in field 4 ( similar to... (5 Replies)
Hi,
I have a file that is 430K lines long. It has records like below
|site1|MAP
|site2|MAP
|site1|MODAL
|site2|MAP
|site2|MODAL
|site2|LINK
|site1|LINK
My task is to count the number of time MAP, MODAL, LINK occurs for a single site and write new records like below to a new file
... (5 Replies)
What i'm trying to do here is show X amount of lines before and after the string "serialNumber" is found.
BEFORE=3
AFTER=2
gawk '{a=$0} {count=0} /serialNumber/ && /./ {for(i=NR-'"${BEFORE}"';i<=NR;i++){count++ ;print a}for(i=1;i<'"${AFTER}"';i++){getline; print ; count ++; print... (5 Replies)
Discussion started by: SkySmart
5 Replies
LEARN ABOUT NETBSD
desktop_palette
desktop_palette(3alleg4) Allegro manual desktop_palette(3alleg4)NAME
desktop_palette - The palette used by the Atari ST low resolution desktop. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
extern PALETTE desktop_palette;
DESCRIPTION
The palette used by the Atari ST low resolution desktop. I'm not quite sure why this is still here, except that the grabber and test pro-
grams use it. It is probably the only Atari legacy code left in Allegro, and it would be a shame to remove it :-)
The contents of this palette are 16 colors repeated 16 times. Color entry zero is equal to color entry 16, which is equal to color entry
24, etc.
Index Color RGB values
0 White 63 63 63
1 Red 63 0 0
2 Green 0 63 0
3 Yellow 63 63 0
4 Blue 0 0 63
5 Pink 63 0 63
6 Cyan 0 63 63
7 Grey 16 16 16
8 Light grey 31 31 31
9 Light red 63 31 31
10 Light green 31 63 31
11 Light yellow 63 63 31
12 Light blue 31 31 63
13 Light pink 63 31 63
14 Light cyan 31 63 63
15 Black 0 0 0
SEE ALSO default_palette(3alleg4), black_palette(3alleg4)Allegro version 4.4.2 desktop_palette(3alleg4)