I've written a script to count the total size of SAN storage LUNs, and also display the LUN sizes.
From server to server, the LUNs sizes differ.
What I want to do is count the occurances as they occur and change.
These are the LUN sizes:
49.95
49.95
49.95
49.95
49.95
49.95
49.95
49.95... (2 Replies)
i want to search a word in a file and find the count of occurences even if pattern occures twice in a same line.
for example file has the following content.
yes no no nooo yees
no yes
if I search for "no" it should give count as 4
Pls help.
Thanks (9 Replies)
I need to count the number of occurrences of a pattern, say 'key', between each occurrence of a different pattern, say 'lu'.
Here's a portion of the text I'm trying to parse:
lu S1234L_149_m1_vg.6, part-att 1, vdp-att 1 p-reserver IID 0xdb
registrations:
key 4156 4353 0000 0000
... (3 Replies)
Hi
I have the following files in a directory -
ds_pl_W_Test
ds_pl_list_Test
ds_pl_list_Test
ds_pl_listl_Test
ds_pl_file_Test
ds_pl_xx_Test
I would like to count the number files in the directory that contain the word "list"
I tried the following but it returns zero -
... (3 Replies)
Hi,
I had posted few days back and got replies on how to extract patterns from a file.
I had another question. I want to count the number of lines a particular pattern. I thought of somethings like using NF variable, etc, but they didnt work.
Here is sample input.
... (9 Replies)
Hi all,
I need to search the database log find out the most frequently used tables for a certain period of time.
The search pattern is : the database.table
so, i need to look for ABCD.* in the entire log and then need the top ten tables.
I thought of using awk, search for the pattern ... (7 Replies)
hi,
I have a text..and i need to find a pattern in the text and count to the no of times the pattern occured.
i have used grep command ..but the problem is , it shows the occurrences of the pattern but doesn't count no of times the pattern occuries. (5 Replies)
I am trying to search a file for a patterns ERR- in a file and return a count for each of the error reported
Input file is a free flowing file without any format
example of output
ERR-00001=5
....
ERR-01010=10
.....
ERR-99999=10 (4 Replies)
Guys -
Need your ideas on a section of code to finish something up. To make a long story short, I'm parsing a print output file that goes to pre-printed forms. I'm intercepting it, parsing it, formatting it, cutting it up into individual pages, grabbing the text I want in zones, building an... (3 Replies)
I need to get a count of all the records that start with 4 and then print the value.
I have the below statement but it is missing something, can someone help me to fix this
awk 'BEGIN{~/^4/{C++}};END {print"<Total>"} {print"<Reg>"}{print "<value>"C"</value></Reg>"}' {print"</Total>"} temp >... (2 Replies)
Discussion started by: rosebud123
2 Replies
LEARN ABOUT SUSE
sinl
SIN(3) Linux Programmer's Manual SIN(3)NAME
sin, sinf, sinl - sine function
SYNOPSIS
#include <math.h>
double sin(double x);
float sinf(float x);
long double sinl(long double x);
Link with -lm.
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
sinf(), sinl(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE; or cc -std=c99
DESCRIPTION
The sin() function returns the sine of x, where x is given in radians.
RETURN VALUE
On success, these functions return the sine of x.
If x is a NaN, a NaN is returned.
If x is positive infinity or negative infinity, a domain error occurs, and a NaN is returned.
ERRORS
See math_error(7) for information on how to determine whether an error has occurred when calling these functions.
The following errors can occur:
Domain error: x is an infinity
An invalid floating-point exception (FE_INVALID) is raised.
These functions do not set errno.
CONFORMING TO
C99, POSIX.1-2001. The variant returning double also conforms to SVr4, 4.3BSD, C89.
SEE ALSO acos(3), asin(3), atan(3), atan2(3), cos(3), csin(3), sincos(3), tan(3)COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
2009-02-04 SIN(3)