@RudiC, I have created the sample so that each condition meet only one line. In the first condition I was trying to take the time and store it in t_arr[] and in the second condition I was trying to subtract the time that was recorded from the in t_arr[] from the current time ( which is of $2 of the second condition ).
Yes, you are right I made a mistake as t_arr[$12] will be zero.
How do I get the out put like :
Maybe if I use 3 arrays !!!
Hi everyone:)
I have 2 files - IN & OUT. Example:
IN
A:13:30
B:45:40
.
.
. UNLIMITED
OUT
Z:12:24
Y:20:15
.
.
. UNLIMITED
I want first row of numbers of IN - OUT. Example 13-12 45-20
My code is (2 Replies)
Hi, I'm trying to break a large csv file into smaller files and use unique values for the file names. The shell script i'm using is tcsh and i'm after a gawk one-liner to get the desired outcome. To keep things simple I have the following example with the desired output.
fruitlist.csv
apples... (6 Replies)
Have built this script, the output is what I needed, but NR 6 is omitted. Why? Is it an error? I am using Gawk.
'{nr=$2;f = $1} END{for (i=1;i<=f;i++) if (nr != i) print i, nr }' input1.csv >output1.csvinput1.csv
1 9
3 5
4 1
7 6
8 5
10 6
output1.csv > with the missing line number 6. 6 is... (5 Replies)
Hello All,
Maybe I'm Missing something here but I have NOOO idea what the heck is going on with this....?
I have a Variable that contains a PATTERN of what I'm considering "Illegal Characters". So what I'm doing is looping
through a string containing some of these "Illegal Characters". Now... (5 Replies)
Sorry if this is a super simple issue, but am extremely new to this and am trying to teach myself as I go along. But can someone please help me out?
I have a data file similar to this for many samples, for all chromosomes
Sample Chr bp p roh
Sample1 1 49598178 0 1... (14 Replies)
I'm trying to achieve the follwoinig with no luck.
Find the directories that are greater than 50GB in size and pick the owner of the directory as I would like to send an alert notification.
du -sh * | sort -rh
139G Dir_1
84G Dir_2
15G Dir_3
ls -l Dir_1
drwx------ 2... (3 Replies)
I am unable to loop print a python string array in my unix shell script:
~/readarr.sh '{{ myarr }}'
more readarr.sh
echo "Parameter 1:"$1
MYARRAY= $1
IFS=
MYARRAY=`python <<< "print ' '.join($MYARRAY)"`
for a in "$MYARRAY"; do
echo "Printing Array: $a"
done
Can you... (10 Replies)
The requirement is i need to find an array value matching with pattern {5:{ , replace that with 5: and reassign that to same array index and print it.
I write something like below and the issue is sed command is not working. If i replace " with "`" the script gives syntax error.how can i... (8 Replies)
Discussion started by: bhagya123
8 Replies
LEARN ABOUT DEBIAN
pthread_condattr_destroy
PTHREAD_CONDATTR(3) Library Functions Manual PTHREAD_CONDATTR(3)NAME
pthread_condattr_init, pthread_condattr_destroy - condition creation attributes
SYNOPSIS
#include <pthread.h>
int pthread_condattr_init(pthread_condattr_t *attr);
int pthread_condattr_destroy(pthread_condattr_t *attr);
DESCRIPTION
Condition attributes can be specified at condition creation time, by passing a condition attribute object as second argument to
pthread_cond_init(3). Passing NULL is equivalent to passing a condition attribute object with all attributes set to their default values.
The LinuxThreads implementation supports no attributes for conditions. The functions on condition attributes are included only for compli-
ance with the POSIX standard.
pthread_condattr_init initializes the condition attribute object attr and fills it with default values for the attributes. pthread_con-
dattr_destroy destroys a condition attribute object, which must not be reused until it is reinitialized. Both functions do nothing in the
LinuxThreads implementation.
RETURN VALUE
pthread_condattr_init and pthread_condattr_destroy always return 0.
AUTHOR
Xavier Leroy <Xavier.Leroy@inria.fr>
SEE ALSO pthread_cond_init(3).
LinuxThreads PTHREAD_CONDATTR(3)