I am having a small dilemna trying to parse a log file I have. Below is a sample of what it will look like:
What I need to do is only keep the MY_TOKEN pieces and where there are multiple tokens in there (see MY_TOKEN2), break that out so I have one per line as such:
I will be matching this data up to a second file, which I can do, I just can't get these tokens to break out properly AND to only print those tokens. I could even accept if the other entries were on their own line as I could just strip them out afterwards.
I need help with a problem that I have not been able to figure out.
I have a file that is about 650K lines. Records are seperated by
blank lines, fields seperated by new lines. I was trying to make
a report that would add up 2 fields and associate them with a CP.
example output would be... (11 Replies)
Hi all,
I am having problems parsing the following file:
cat mylist
one,two,three
four
five,six
My goal is to get each number on a seperate line.
one
two
three
four
five
six
I tried this command:
sed -e 's/\,/^M/g' mylist (11 Replies)
Hi,
After looking on different forums, I'm still in trouble to parse a parameters line received in KSH.
$* is equal to "/AAA:111 /BBB:222 /CCC:333 /DDD:444"
I would like to parse it and be able to access anyone from his name in my KSH after.
like
echo myArray => display 111
... (1 Reply)
Hello,
I have a similar problem so I continue this thread.
I have:
my_script_to_format_nicely_bdf.sh | grep "RawData" |tr -s ' '|cut -d' ' -f 4|tr -d '%'
So it supposed to return the percentage used of RawData FS:
80
(Want to use it in a alert script)
However I also have a RawData2 FS so... (17 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I want add a line.For example:-
123456 1 1 0 1 1 0 1 0 0 0 1 5 8 0 12 10 25
its answer... (4 Replies)
I have 1.6 GB (and growing) of files with needed data between the 11th and 34th line (inclusive) of the second column of comma delimited files. There is also a lot of stray white space in the file that needs to be trimmed. They have DOS-like end of lines.
I need to transpose the 11th through... (13 Replies)
Hi,
I want to fetch a text.Clipping.
... (5 Replies)
Discussion started by: protocomm
5 Replies
LEARN ABOUT REDHAT
pvm_freezegroup
FREEZEGROUP(3PVM) PVM Version 3.4 FREEZEGROUP(3PVM)NAME
pvm_freezegroup - Freezes dynamic group membership and caches info locally
SYNOPSIS
C int info = pvm_freezegroup( char *group , int size)
Fortran call pvmffreezegroup( group, size, info )
PARAMETERS
group Character string group name of an existing group.
size Size of the group when it is frozen
info size of group on success. Values less than 0 indicate and error.
DESCRIPTION
The routine pvm_freezegroup makes a dynamic group named group static. The group information is then "cached" by all group members.
pvm_freezegroup is a synchronizing routine and must be called by all group members to complete. size indicates the size the dynamic group
should be when made static. A value of -1 indicates that the current size of the group should be used. info returns error information.
Once a dynamic group has been frozen with pvm_freezegroup , all subsequent operations that can be satisfied with local data use the locally
held information. For processes that are outside of the group, the first group call, e.g., pvm_bcast(), will cause the static group infor-
mation to be copied to the calling process. Subsequent operations then use the local information. Barriers are still arbitrated by the
group server.
Group members should call pvm_lvgroup to leave the group and free any allocated structures that hold the group information. Processes
not in the group may call pvm_lvgroup to free any locally allocated structures. In this case, an error code of PvmNotInGroup or
PvmNoGroup will be returned to the caller.
Barrier are always arbitrated by the group server, even if the group has been made static with pvm_freezegroup. If a process leaves a
static group while other process are waiting at a barrier, then PvmNoGroup is returned to all processes waiting at the barrier. Future
barrier calls with the defunct static group, return the same error.
EXAMPLES
C:
inum = pvm_joingroup("worker");
info = pvm_freezegroup( "worker", size );
Fortran:
CALL PVMFJOINGROUP('group2', inum)
CALL PVMFFREEZEGROUP( 'group2', size, info )
ERRORS
These error conditions can be returned by pvm_freezegroup
PvmSysErr
pvmd was not started or has crashed.
PvmBadParam
giving a NULL group name.
PvmDupGroup
trying to freeze a group that is already frozen.
PvmNotInGroup
trying to freeze a group that you are not in.
BUGS
There is no way to unfreeze a group.
Processes are not notified if a frozen group becomes invalid.
Having a non-member process call pvm_lvgroup to free structures is a bit strange.
SEE ALSO pvm_barrier(3PVM), pvm_lvgroup(3PVM)
16 March 1995 FREEZEGROUP(3PVM)