I am trying to assign a awk array for further processing later in the script. I can't seem to figure it out. If someone could look at this and help me, I would very much appreciate it.
Thanks in Advance.
for ( x = 1 ; x <= Var ; x++ ) {
if ( x in varr ) {
... (2 Replies)
Hi,
i want awk to read a file and place it's content into two arrays. When trying to read these arrays with a "for a in ${source_path} "-Loop it gives the right result. But when trying to access directly (/bin/echo ${source_path}) it doesn't work.
I read "all "the awk threads in this forum and... (6 Replies)
Is there a way to retain the awk array in the shell.
My requirement
file a.txt
A B Count
10 1 25
10 2 20
10 3 21
11 1 20
11 2 22
12 2 40
12 3 15
A and B are my variables and count... (6 Replies)
I want to ask the user to enter an X amount of file names. I want to put those names into an array and then loop back through them to verify they are in the directory. 1st- How would I assign the value to an array and what is the correct syntax. 2nd- how would i reference that array after I... (3 Replies)
file.txt : is delimiter:
abc:def:ghi
jkl:mno: pqr
123:456:789
if I do the cut command, and cut the first column, and echo it out
I will get the output:
abc
jkl
123
How can I assign the column of text that I've cut into Array?
e.g If I were to echo array array it will output as:... (9 Replies)
Hi,
I have a piece of code as follows:
i=0
while read LINE
do
var = "$LINE"
i=$((i+1))
echo "${var}"
done < file
I want to assign value to the array var.
However, when i execute the script i get a error.
Please can you help me know what i am missing.
I ultimately want to... (2 Replies)
Hi all ,
I have a string like para1#para2#para3
i want to assign para1 as first element para2 as second and so on
i tried
IFS=#
set -A array para1#para2#para3
echo ${array}
para1 para2 para3
i want echo ${array}
para1 (2 Replies)
Hi,
I have a 10*10 two dimensional array. How do I assign value to all it's 100 elements at once? I don't want to open two for loops and assign one by one.
Thanks,
Shuri (1 Reply)
Discussion started by: shurimano
1 Replies
LEARN ABOUT HPUX
event_class
event_class(5)event_class(5)NAME
event class file - The file that contains the declaration of an event class.
DESCRIPTION
Audit events can be logically grouped into event classes. Event classes are defined in event class files. An event class file contains an
event class number and a list of event numbers corresponding to audit events.
All event class files must be created in the dcelocal/etc/audit/ec directory.
The name of the event class file becomes the name of the event class. The recommended naming convention for event class files is:
dce_server-name_class
where class is a descriptive text that characterizes the event class.
Event class files must be write-protected by the local operating system (that is, only administrators should have write access to these
files). Audit clients read these files to maintain an event table in their address space.
Optionally, an event class file can contain a SEP line. This line contains a list of prefixes of the event numbers in the file. The SEP
line speeds up the scanning performed by the Audit clients. Audit clients which do not have events with one of the prefixes listed will
not scan the event list. If the SEP line is not provided in the file, Audit clients will have to read the entire file to find out if the
event class file contains any of their events.
Empty lines are ignored in the event class file.
Comments are designated by the number sign (#) placed before the comment text.
The Event Class File Format
The format of an event class file is: ECN=event_class_number SEP=prefix_1 prefix_2 ... # comments start with the number sign event_num-
ber_1 event_number_2
EXAMPLES
Following is an example of an event class file for the event class ec_local_authentication: ECN = 0x00000001 SEP = 0x100 # AS_Request
0x00000100 # TGS_TicketReq 0x00000101 # TGS_RenewReq 0x00000102 # TGS_ValidateReq 0x00000103
event_class(5)