I am trying to write a program in a script .sh
I have a list of coordinates ie
e1=123 n1=123
e2=456 n2=456
e3=789 n3=789
I have a counter starting at 1
for (( i=1; i<=2; i++))
i need coordinate=123,123
then on the second loop
coordinate=456,456 etc...
I tried doing:
#e=0 n=0 <... (3 Replies)
Hi Everybody.
I need an urgent help, it would be great if somebody will help me out in this regard. See below sample file
1525 805 26 2036 219644. 2598293.
1525 805 126 2327
1525 805 226 ... (6 Replies)
Hi there,
If I have the following:
and want to print the first column based on the uniqe value of the second column, so the output would be something like:
how would I do that, using AWK and the piping technique?
Thanks in advance (12 Replies)
For below lines in a file.
68078971 dance routine (jess far back corner) 13902786
368079527 dance routine 13902786
368081191 dance routine (jess far back) 13902786
I am looking for output as below
68078971, "dance routine (jess far back corner)", 13902786... (4 Replies)
Morning,
I have an issue to print files based on file name
my input file
20170516_WATERSONGS.txt
20170509_MULTIFLAG.txt
every file consist of list of number, for ex 20170516_WATERSONGS.txt
7281370247390
7281370605338
7281370836600
7281370840039
7281372341119
7281372821958... (1 Reply)
Morning,
I have an issue to print files based on file name
my input file
20170516_WATERSONGS.txt
20170509_MULTIFLAG.txt
every file consist of list of number, for ex 20170516_WATERSONGS.txt
7281370247390
7281370605338
7281370836600
7281370840039
7281372341119
7281372821958... (3 Replies)
Discussion started by: radius
3 Replies
LEARN ABOUT SUNOS
cpc_access
cpc_access(3CPC)cpc_access(3CPC)NAME
cpc_access - test access CPU performance counters
SYNOPSIS
cc [ flag... ] file... -lcpc [ library... ]
#include <libcpc.h>
int cpc_access(void);
Access to CPU performance counters is possible only on systems where the appropriate hardware exists and is correctly configured. The
cpc_access() function must be used to determine if the hardware exists and is accessible on the platform before any of the interfaces that
use the counters are invoked.
When the hardware is available, access to the per-process counters is always allowed to the process itself, and allowed to other processes
mediated using the existing security mechanisms of /proc.
Upon successful completion, cpc_access() returns 0. Otherwise, it returns -1 and sets errno to indicate the error.
By default, two common errno values are decoded and cause the library to print an error message using its reporting mechanism. See
cpc_seterrfn(3CPC) for a description of how this behavior can be modified.
The cpc_access() function will fail if:
EAGAIN Another process may be sampling system-wide CPU statistics.
ENOSYS CPU performance counters are inaccessible on this machine. This error can occur when the machine supports CPU performance
counters, but some software components are missing. Check to see that all CPU Performance Counter packages have been cor-
rectly installed.
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
|Interface Stability |Obsolete |
+-----------------------------+-----------------------------+
cpc(3CPC), cpc_open(3CPC), cpc_seterrfn(3CPC), libcpc(3LIB), proc(4), attributes(5)
The cpc_access() function exists for binary compatibility only. Source containing this function will not compile. This function is obsolete
and might be removed in a future release. Applications should use cpc_open(3CPC) instead.
28 Mar 2005 cpc_access(3CPC)