Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to print based on the value from counters? Post 302831707 by Corona688 on Thursday 11th of July 2013 02:18:58 PM
Old 07-11-2013
Quite probably.

If it helps, you can combine statements with ( ) so you can pipe the output of multiple commands, in order, through one pipe.

Code:
( echo a ; cat b ; foo ) | command

If this doesn't clear it up you may actually need to post your code so we can see what you need specifically.
 

8 More Discussions You Might Find Interesting

1. Solaris

netstat counters

Is there a way to reset the netstat counters in solaris 8? Specifically, the error counters? (1 Reply)
Discussion started by: tjlst15
1 Replies

2. UNIX for Dummies Questions & Answers

Unix performance monitoring counters

Which performance counters you might to define as "The most important counters in checking unix performance" (3 Replies)
Discussion started by: gen4ik
3 Replies

3. UNIX for Dummies Questions & Answers

Counters and arrays help needed!

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)
Discussion started by: gazz1982
3 Replies

4. Shell Programming and Scripting

Need to print last column based on the value of first 2 colums

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)
Discussion started by: syahmed
6 Replies

5. Shell Programming and Scripting

Q: print a column based on the uniqe value of another

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)
Discussion started by: Abdulelah
12 Replies

6. Shell Programming and Scripting

Print rows based on separator

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)
Discussion started by: Anjan1
4 Replies

7. UNIX for Beginners Questions & Answers

Print Based on File Name

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)
Discussion started by: radius
1 Replies

8. UNIX for Beginners Questions & Answers

Print Based on File Name

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
TIMECOUNTERS(4) 					   BSD Kernel Interfaces Manual 					   TIMECOUNTERS(4)

NAME
timecounters -- kernel time counters subsystem SYNOPSIS
The kernel uses several types of time-related devices, such as: real time clocks, time counters and event timers. Real time clocks are responsible for tracking real world time, mostly when the system is down. Time counters are responsible for tracking purposes, when the sys- tem is running. Event timers are responsible for generating interrupts at a specified time or periodically, to run different time-based events. This page is about the second. DESCRIPTION
Time counters are the lowest level of time tracking in the kernel. They provide monotonically increasing timestamps with known width and update frequency. They can overflow, drift, etc and so in raw form can be used only in very limited performance-critical places like the process scheduler. More usable time is created by scaling the values read from the selected time counter and combining it with some offset, regularly updated by tc_windup() on hardclock() invocation. Different platforms provide different kinds of timer hardware. The goal of the time counters subsystem is to provide a unified way to access that hardware. Each driver implementing time counters registers them with the subsystem. It is possible to see the list of present time counters, via the kern.timecounter sysctl(8) variable: kern.timecounter.choice: TSC-low(-100) HPET(950) i8254(0) ACPI-fast(900) dummy(-1000000) kern.timecounter.tc.ACPI-fast.mask: 16777215 kern.timecounter.tc.ACPI-fast.counter: 13467909 kern.timecounter.tc.ACPI-fast.frequency: 3579545 kern.timecounter.tc.ACPI-fast.quality: 900 kern.timecounter.tc.i8254.mask: 65535 kern.timecounter.tc.i8254.counter: 62692 kern.timecounter.tc.i8254.frequency: 1193182 kern.timecounter.tc.i8254.quality: 0 kern.timecounter.tc.HPET.mask: 4294967295 kern.timecounter.tc.HPET.counter: 3013495652 kern.timecounter.tc.HPET.frequency: 14318180 kern.timecounter.tc.HPET.quality: 950 kern.timecounter.tc.TSC-low.mask: 4294967295 kern.timecounter.tc.TSC-low.counter: 4067509463 kern.timecounter.tc.TSC-low.frequency: 11458556 kern.timecounter.tc.TSC-low.quality: -100 The output nodes are defined as follows: kern.timecounter.tc.X.mask is a bitmask, defining valid counter bits, kern.timecounter.tc.X.counter is a present counter value, kern.timecounter.tc.X.frequency is a counter update frequency, kern.timecounter.tc.X.quality is an integral value, defining the quality of this time counter compared to others. A negative value means this time counter is broken and should not be used. The time management code of the kernel chooses one time counter from that list. The current choice can be read and affected via the kern.timecounter.hardware tunable/sysctl. SEE ALSO
attimer(4), eventtimers(4), ffclock(4), hpet(4) BSD
April 12, 2014 BSD
All times are GMT -4. The time now is 03:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy