I want to find all processes beginning with the name 'Admin' and then do a grep count on those processes containing a specific string i.e. However, it is giving below error
I am able to get the lines themselves by using following command, which is successful. How to get the count of it?
I need to count the number of instances of a dir in a set of dir with the same suffix .txt (one dir and all recursive directories).
<Main Dir>
<sub_dir1>
<sub_dir2>
<sub_dir3>
<sub_dir4>
and count the number of instances of a type of file, ie/ .txt files (3 Replies)
The following command lists the files which has "wPOREQ" in the files whose names are like:M*08042007*
grep -l "aaa" M*08042007*
I want to know the count of the files.
Thank you for the help. (2 Replies)
Hi
My files is like
a|test|s|
b|test2 | n|
c|ggg|v|
i want to count the no of lines which is ending with "|" ...
Please let me know how can it be done.
Thanks,
Arun (4 Replies)
Hi,
I trying to sort information in a file by making count for every object. For example:
A
B
A
D
A
B
C
i would like to sort out count for each object (A's, B's and etc) but in actual case i dont know the object but i know the position ofthe object. do i need to use array as well? Any... (2 Replies)
Hi, I have several files with same filename pattern. I want to calculate count of individual files using grep/egrep. Let me be more descriptive
In directory E1 i have files like
ab_20091201_12:24 ab_20091201_03:24 cd_20091201_04:16 cd_20091203_08:34 ef_20091201_06:12 ef_20091201
Now i want... (3 Replies)
Hi,
my requirement is to find the count of commas in a string excluding the ones in double quotes.
For example:
If the input string is
abc,xyz.com,lmhgdf,"abc, 401 street","tty,stt",45,23,45
The output should be 7 (7 Replies)
Need a little help.
I have just a simple string with a lot double quotes in it. I need to be able to parse through this string, and know how many double quotes I have, and where I am, so I can key off every 9th double quote. For example (coding is not complete):
#!/bin/bash
count=0... (3 Replies)
I have a delimited file (by |), and the second field is made out of Surnames.
Is it possible to list the surnames together with their count of occurances.
For example, image the first two lines are the following:
Joe | Doe | 30
Jane | Doe | 28
Peter | Smith | 25
John | Jones | 26
I... (2 Replies)
got a file as y.txt
1 abc,def,ghj
2 defj,abc.kdm,ijk
3 lmn,cbk,mno
4 tmp,tmop,abc,pkl
5 pri,chk,cbk,lmo
6 def,cbk.pro,abc.kdm
i want to search in the above file the key word like abc
looking for two outcomes by passing the parameter value as abc into function and the two outocmes are... (0 Replies)
Discussion started by: silgun
0 Replies
LEARN ABOUT REDHAT
pvmfbarrier
BARRIER(3PVM) PVM Version 3.4 BARRIER(3PVM)NAME
pvm_barrier - Blocks the calling process until all processes in a group have called it.
SYNOPSIS
C int info = pvm_barrier( char *group, int count )
Fortran call pvmfbarrier( group, count, info )
PARAMETERS
group Character string group name. The group must exist and the calling process must be a member of the group.
count Integer specifying the number of group members that must call pvm_barrier before they are all released. Though not required, count
is expected to be the total number of members of the specified group.
info Integer status code returned by the routine. Values less than zero indicate an error.
DESCRIPTION
The routine pvm_barrier blocks the calling process until count members of the group have called pvm_barrier. The count argument is
required because processes could be joining the given group after other processes have called pvm_barrier. Thus PVM doesn't know how many
group members to wait for at any given instant. Although count can be set less, it is typically the total number of members of the group.
So the logical function of the pvm_barrier call is to provide a group synchronization. During any given barrier call all participating
group members must call barrier with the same count value. Once a given barrier has been successfully passed, pvm_barrier can be called
again by the same group using the same group name.
If pvm_barrier is successful, info will be 0. If some error occurs then info will be < 0.
EXAMPLES
C:
inum = pvm_joingroup( "worker" );
.
.
info = pvm_barrier( "worker", 5 );
Fortran:
CALL PVMFJOINGROUP( "shakers", INUM )
COUNT = 10
CALL PVMFBARRIER( "shakers", COUNT, INFO )
ERRORS
These error conditions can be returned by pvm_barrier
PvmSysErr
pvmd was not started or has crashed.
PvmBadParam
giving a count < 1.
PvmNoGroup
giving a non-existent group name.
PvmNotInGroup
calling process is not in specified group.
SEE ALSO pvm_joingroup(3PVM)
30 August, 1993 BARRIER(3PVM)