Sponsored Content
Full Discussion: Bash - Same frequency
Top Forums Shell Programming and Scripting Bash - Same frequency Post 302514913 by Corona688 on Monday 18th of April 2011 12:10:00 PM
Old 04-18-2011
Hmmm.

Code:
# Throw away the name into G, read the frequency into FREQ
read G FREQ <<<$(grep "^${1}[ \t]" filename)

grep "[ \t]${FREQ}\$" filename | sort

The <<< is a BASH syntax. For other shells you may need a temporary file.
 

9 More Discussions You Might Find Interesting

1. Solaris

out of frequency

:cool: after installing solaris 10 5/08/09 directory the computer rebooting then the massage "out of frequency" appear.i want a solution first second my main board is GA-MA780G UD3H (14 Replies)
Discussion started by: medo2008
14 Replies

2. Shell Programming and Scripting

Counting commands frequency

I'd like to create a script that keeps track of the commands used. For example: count ls ps and from now on whenever I use ls or ps a counter is increased. I want that after the command count has been activated a session starts(here I can use any commands) and I want to stop the session... (5 Replies)
Discussion started by: Max89
5 Replies

3. Shell Programming and Scripting

Sorting value frequency within an array

How is it possible to sort different nummeric values within an Array. But i don`t want the highest or the lowest. I need the most frequently occurring value. For examble: My Array has to following values = (200 404 404 500 404 404 404 200 404) The result should be 404 The values are... (3 Replies)
Discussion started by: 2retti
3 Replies

4. Shell Programming and Scripting

Calculating cumulative frequency

Hi, I have a file containing the frequency's of an element sorted in ascending order. The file looks something like this: #Element Frequency 1 1 2 1 3 1 4 1 5 1 6 ... (5 Replies)
Discussion started by: sajal.bhatia
5 Replies

5. UNIX for Dummies Questions & Answers

Frequency of a range of numbers

Hello, I have a column where there are values from 1 to 150. I want to get the frequency of values in the following ranges: 1-5 6-10 11-15 .... .... .... 146-150 How can I do this in a for loop? Thanks, Guss (1 Reply)
Discussion started by: Gussifinknottle
1 Replies

6. AIX

Finding Memory Frequency

Hi, I would like to know how to find out frequency of memory, I have used the command prtconf but it is showing amt of ram available on server, it is not showing frequency. Regards, Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies

7. Emergency UNIX and Linux Support

Different OS Kernel Update Frequency

Hi guys I'm trying to configure a collaboration suit (PHP, PostgreSQL, Apache) plus a mail server(Sendmail and Dovecot) on a single box. It will be used heavily 24*7. So having a long up time is really needed. I'm looking for 3 to 6 month up time. I want to know about kernel update... (6 Replies)
Discussion started by: majid.merkava
6 Replies

8. Shell Programming and Scripting

find frequency

Hi, I have a file with more than 1 million records.. Each row has a distance number.. I want to know how many times is each number occurring from min to max number.. 2 5 120 208 7 28 45 6 33 120 7 208 so onn.. output 0-0 (4 Replies)
Discussion started by: Diya123
4 Replies

9. Shell Programming and Scripting

frequency count using shell

Hello everyone, please consider the following lines of a matrix 59 32 59 32 59 32 59 32 59 32 59 32 59 32 60 32 60 33 60 33 60 33 60 33 60 33 60 33 60 33 60 33 60 33 (7 Replies)
Discussion started by: xshang
7 Replies
CPUPOWER-FREQUENCY-SET(1)					  cpupower Manual					 CPUPOWER-FREQUENCY-SET(1)

NAME
cpupower frequency-set - A small tool which allows to modify cpufreq settings. SYNTAX
cpupower [ -c cpu ] frequency-set [options] DESCRIPTION
cpupower frequency-set allows you to modify cpufreq settings without having to type e.g. "/sys/devices/system/cpu/cpu0/cpufreq/scal- ing_set_speed" all the time. OPTIONS
-d --min <FREQ> new minimum CPU frequency the governor may select. -u --max <FREQ> new maximum CPU frequency the governor may select. -g --governor <GOV> new cpufreq governor. -f --freq <FREQ> specific frequency to be set. Requires userspace governor to be available and loaded. -r --related modify all hardware-related CPUs at the same time REMARKS By default values are applied on all cores. How to modify single core configurations is described in the cpupower(1) manpage in the --cpu option section. The -f FREQ, --freq FREQ parameter cannot be combined with any other parameter. FREQuencies can be passed in Hz, kHz (default), MHz, GHz, or THz by postfixing the value with the wanted unit name, without any space (fre- quency in kHz =^ Hz * 0.001 =^ MHz * 1000 =^ GHz * 1000000). On Linux kernels up to 2.6.29, the -r or --related parameter is ignored. FILES
/sys/devices/system/cpu/cpu*/cpufreq/ /proc/cpufreq (deprecated) /proc/sys/cpu/ (deprecated) AUTHORS
Dominik Brodowski <linux@brodo.de> - author Mattia Dongili<malattia@gmail.com> - first autolibtoolization SEE ALSO
cpupower-frequency-info(1), cpupower(1) 0.1 CPUPOWER-FREQUENCY-SET(1)
All times are GMT -4. The time now is 11:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy