03-14-2016
As it is always ".WC", it doesn't matter for indexing/summing. It is removed when printing t+0.
This User Gave Thanks to RudiC For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to figure out a way to count the number of words in the follwing file:
cal 2002 > file1
Is there anyway to do this without using wc but instead using the cut command? (1 Reply)
Discussion started by: r0mulus
1 Replies
2. UNIX for Advanced & Expert Users
Hi,
everybody this is my pattern in a file
thomson, nicolas 5-3871
Wong, Fred 4-4123
Jones, Thomas 1-4122
Salazar, Richard 5-2522
first name and last names of people fallowed by Tele.
while i am searching for pattern first name begin with 'S'... (8 Replies)
Discussion started by: ksr.test
8 Replies
3. Shell Programming and Scripting
Hi,
Please help me in counting the below records(1st field) from samplefile:
Expected output:
Count Descr
-------------------------------------------
7 Mean manager
14 ... (7 Replies)
Discussion started by: prashant43
7 Replies
4. Shell Programming and Scripting
hello
im new here so i want to say hi everybody :)
i have to write a script and im newbie :/ i hope that in this forum are many ppl who knows subject :)
i have hundrets folders. in each folder is a file name trace.txt. each trace.txt has a lot of tracert's results separates with "-----" it... (6 Replies)
Discussion started by: michael8484
6 Replies
5. Programming
Please find the below program. It contains the purpose of the program itself.
/* Program : Write a program to count the number of words in a given text file */
/* Date : 12-June-2010 */
# include <stdio.h>
# include <stdlib.h>
# include <string.h>
int main( int argc, char *argv )
{... (6 Replies)
Discussion started by: ramkrix
6 Replies
6. Shell Programming and Scripting
Ok say I wanted to count every Y in a data file.
Then set Y as my delimiter so that I can separate my file by taking all the contents that occur BEFORE the first Y and store them in a variable so that I may use this content later on in my program. Then I could do the same thing with the next Y's... (5 Replies)
Discussion started by: puttster
5 Replies
7. Shell Programming and Scripting
Hi,
I have a very large two column log file in the following format:
# Epoch Time IP Address
899726401 112.254.1.0
899726401 112.254.1.0
899726402 154.162.38.0
899726402 160.114.12.0
899726402 165.161.7.0
899726403 ... (39 Replies)
Discussion started by: sajal.bhatia
39 Replies
8. Shell Programming and Scripting
.......... (1 Reply)
Discussion started by: Antonlee
1 Replies
9. Shell Programming and Scripting
I want to count lines of a file using AWK (only) and not in the END part like this awk 'END{print FNR}' because I want to use it.
Does anyone know of a way?
Thanks a lot. (7 Replies)
Discussion started by: guitarist684
7 Replies
10. Shell Programming and Scripting
Hi All ,
I got stuck on the below scenario.If anyone can help me ,that will be really helpful.
I have a target hdfs file layout.I need to know the no of column in that file.
Target_RECRD_layout
{
ABC_ID EN NOTNULLABLE,
ABC_COUNTRY CHARACTER ENCODING ASCII NOTNULLABLE,
... (5 Replies)
Discussion started by: STCET22
5 Replies
LEARN ABOUT MOJAVE
os_activity_initiate
os_activity_initiate(3) BSD Library Functions Manual os_activity_initiate(3)
NAME
os_activity_initiate, os_activity_initiate_f -- activity related routines
SYNOPSIS
#include <os/activity.h>
void
os_activity_initiate(const char *description, uint32_t flags, void (^activity_block)(void));
void
os_activity_initiate_f(const char *description, uint32_t flags, void *ctx, void function(void *ctx));
DESCRIPTION
An activity is essentially an identifier that is created by the system. The identifier is transported with work via GCD, XPC and other mecha-
nisms. The identifier simplifies debugging programs since it correlates the trace and log messages to the area in question. Although an
activity appears to have a start/end, it is only finished when no other work related to it is enqueued to be processed. Activity functions
only allow constant strings for performance and privacy, similar to os_trace(3).
Supported Activity Name:
os_activity_initiate("indexing database", OS_ACTIVITY_FLAG_DEFAULT, ^(void) {
[self indexDatabase];
});
Unsupported Activity Name:
snprintf(buffer, "indexing database for %s", username);
os_activity_initiate(buffer, OS_ACTIVITY_FLAG_DEFAULT, ^(void) {
[self indexDatabase];
});
os_activity_initiate and os_activity_initiate_f wraps the block or function with a new activity.
EXAMPLES
Example use of activity with a message.
#include <os/trace.h>
#include <os/activity.h>
- (IBOutlet) indexDatabase:(id) sender {
os_activity_initiate("index database", OS_ACTIVITY_FLAG_DEFAULT, ^{
os_trace("re-indexing database for %d", self.uid);
[self reIndex: self.uid];
});
}
SEE ALSO
os_trace(3), os_log(3)
Darwin June 1, 2019 Darwin