Sponsored Content
Full Discussion: counting?
Top Forums UNIX for Dummies Questions & Answers counting? Post 302599262 by Corona688 on Thursday 16th of February 2012 01:57:11 PM
Old 02-16-2012
Not a dumb question.

Code:
awk '/^>/ { T[$1]++ } END { for(X in T) print X, T[X]; }' filename

 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with counting files please

Hi all. If I have a unix directory with multiple files, lets say, I have some with .dat extensions, some with .txt extensions, etc etc. How in a script would I provide a count of all the different file types (so, the different extensions, I guess) in the directory?? So if I had: test.dat... (6 Replies)
Discussion started by: gerard1
6 Replies

2. IP Networking

counting the packets

there are a number of clients connected to a server.... how can i count that each clients recieve ...? how do i moniter the activity of the client..? (2 Replies)
Discussion started by: damn_bkb
2 Replies

3. Shell Programming and Scripting

Counting up a variable

Hello, I am trying to write a shell script, but i encountered a problem I cant solve alone so I hope you guys can help me. The situation is: I have a script file and a config file, in my config file I set some Variables: for example: destination=(xp, xq, xt) username=testor... (3 Replies)
Discussion started by: Kenada
3 Replies

4. Shell Programming and Scripting

Counting

Hi, I want to count how many rows are in a file for a specific column. eg. K NM K NM K NM K JK K NM K JK K NM so the file is tab-delimited. I want to count how many rows are in column 2 and how many NMs there are. I used awk awk '{OFS="\t"}; {count++} {print i,... (3 Replies)
Discussion started by: phil_heath
3 Replies

5. UNIX for Dummies Questions & Answers

counting words

if i have a long list of data, with every line beginning with an ip-address, like this: 62.165.8.187 - - "GET /bestandnaam.html HTTP/1.1" 200 5848 "http://www.domeinnaam.nl/bestandnaam.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" how do i count which ip-adresses are mentioned... (3 Replies)
Discussion started by: FOBoy
3 Replies

6. Shell Programming and Scripting

Counting words

Hi Is there a way to count the no. of words in all files in directory. All are text files.I use wc -w but somehow i am not getting the rite answer. Is there an alternative. Thanks in advance (9 Replies)
Discussion started by: kinny
9 Replies

7. Shell Programming and Scripting

Counting

Hi, The following output shows how many pmon process are started by users named : oracle or yoavb $ ps -ef |grep pmon |grep -v grep |grep -v ipmon oracle 11268 1 0 Sep 2 ? 36:00 ora_pmon_qerp oracle 17496 1 0 Oct 11 ? 8:58 ora_pmon_bcv oracle 15081 1 0 ... (5 Replies)
Discussion started by: yoavbe
5 Replies

8. Shell Programming and Scripting

counting using awk

Hi, I want to perform a task using shell script. I am new to awk programming and any help would be greatly appreciated. I have the following 3 files (for example) file1: Name count Symbol chr1_1_50 10 XXXX chr3_101_150 30 YYYY File2: Name ... (13 Replies)
Discussion started by: Diya123
13 Replies

9. Shell Programming and Scripting

Sequential counting

Hi have a file of the following format a1 a1 a2 a2 a4 a4 a4 a3 a3 a5 a6 a6 a6 a6 .. 100's of lines (2 Replies)
Discussion started by: Lucky Ali
2 Replies
std::__future_base::_State_base(3cxx)									     std::__future_base::_State_base(3cxx)

NAME
std::__future_base::_State_base - SYNOPSIS
Inherited by std::__future_base::_Async_state< _Res >, std::__future_base::_Deferred_state< _Res >, and std::__future_base::_Task_state< _Res(_Args...)>. Public Member Functions _State_base (const _State_base &) void _M_break_promise (_Ptr_type __res) void _M_set_result (function< _Ptr_type()> __res, bool __ignore_failure=false) void _M_set_retrieved_flag () _State_base & operator= (const _State_base &) _Result_base & wait () template<typename _Rep , typename _Period > bool wait_for (const chrono::duration< _Rep, _Period > &__rel) template<typename _Clock , typename _Duration > bool wait_until (const chrono::time_point< _Clock, _Duration > &__abs) Static Public Member Functions template<typename _Res , typename _Arg > static _Setter< _Res, _Arg && > __setter (promise< _Res > *__prom, _Arg &&__arg) template<typename _Res > static _Setter< _Res, __exception_ptr_tag > __setter (exception_ptr &__ex, promise< _Res > *__prom)" static _Setter< void, void > __setter (promise< void > *__prom) template<typename _Tp > static bool _S_check (const shared_ptr< _Tp > &__p) Detailed Description Base class for state between a promise and one or more associated futures. Definition at line 286 of file future. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Nov 27 2012 std::__future_base::_State_base(3cxx)
All times are GMT -4. The time now is 06:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy