Sorry forgot to mention that the each line in the file can vary:
I need it formatted in as 18.2 and need the M value included in the summary for each row as it will never be missing. Thanks again.
Moderator's Comments:
Please use code tags when posting data and code samples!
Last edited by vgersh99; 05-25-2011 at 05:41 PM..
Reason: once again - please use code tags!
I am trying to take two files and add the numbers from each. There is a total of 5192 numbers in each file and I want to add them row by row... ie. first row of file 1 + first row of file 2 = first row of output. Eventually I will be summing 40401 of these files together but starting with 2 just... (21 Replies)
Hi
My orginal file is like (100s of lines)
id host ip location remarks
1 host1 ip1 - xxx
2 host2 ip2 - xxx
3 host3 ip3 - xxx
--
--
9 host9 ip9 - xxx
I have a ref file like
host1 location1
host2 location2
host3 location3
--
--... (6 Replies)
Hi,
I have gone through may posts and dint find exact solution for my requirement.
I have file which consists below data and same file have lot of other data.
<MAPPING DESCRIPTION ='' ISVALID ='YES' NAME='m_TASK_UPDATE' OBJECTVERSION ='1'>
<MAPPING DESCRIPTION ='' ISVALID ='NO'... (11 Replies)
Hi friends,
This is sed & awk type question.
I have a text file which has numbers spread all over the file. I want to sum the series of numbers whenever i find it and produce an output file with the sum. For example
###start of input text file ####
abc
def
ghi
1
2
3
4
kjld
random... (3 Replies)
Hi
I would like to know if it is possible to sum some specific fields.
I have this
x;x;x;x;x;x;x;x;467,390,611 Bytes;0.435291 GB;0.062247 GB;0.373045 GB;11,225;157
a;a;a;a;a;a;a;a;13,805,156,846 Bytes;12.857054 GB;1.838559 GB;11.018495 GB;151,063;18,933
b;b;b;b;b;b;b;b;232,797,478,723... (5 Replies)
Hi all
I have following file which I have to edit for research purpose
file:///tmp/moz-screenshot.png body, div, table, thead, tbody, tfoot, tr, th, td, p { font-family: "Liberation Sans"; font-size: x-small; } Drug: KRP-104 QD Drug: Placebo Drug: Metformin|Drug:... (15 Replies)
This could be a really dummy question.
I have a log text file.
What unix command to extract line from specific string to another specific string.
Is it something similar to?:
more +/"string" file_name
Thanks (4 Replies)
Hello....
Pls help me (and sorry my english) :)
So
I have a file (test.txt) with 1 long line.... for example:
isgc jsfh udgf osff 8462 error iwzr 653 idchisfb isfbisfb sihfjfeb isfhsi gcz eifh
How to print after the "error" word the 2nd 4th 5th and 7th word??
output well be:
653 isfbisfb... (2 Replies)
data file contains
failed=24
error=23
error=163
failed=36
error=903
i need to get a total count of each value above. i'm looking for the most efficient method to do this as the datafile i provided is just a sample. the actual data can be several hundred thousands of lines.
so from... (3 Replies)
Hi,
I have a sample file as shown below, I am looking for sed or any command which prints the complete word only from the input file.
Ex:
$ cat "sample.log"
I am searching for a word which is present in this file
We can do a pattern search using grep but I need to cut only the word which... (1 Reply)
Discussion started by: mohan_kumarcs
1 Replies
LEARN ABOUT NETBSD
schedctl
SCHEDCTL(8) BSD System Manager's Manual SCHEDCTL(8)NAME
schedctl -- control scheduling of processes and threads
SYNOPSIS
schedctl [-A cpus] [-C class] [-P pri] [-t lid] -p pid | command
DESCRIPTION
The schedctl command can be used to control the scheduling of processes and threads. It also returns information about the current schedul-
ing parameters of the process or thread. Only the super-user may change the scheduling parameters. schedctl can also be used to start a new
command using the specified parameters.
Available options:
-A cpus Set of the processors on which process or thread should run, that is, affinity. Processors are defined as numbers (starting from
zero) and separated by commas. A value of -1 is used to unset the affinity.
-C class Scheduling class (policy), one of:
SCHED_OTHER Time-sharing (TS) scheduling policy. The default policy in NetBSD.
SCHED_FIFO First in, first out (FIFO) scheduling policy.
SCHED_RR Round-robin scheduling policy.
-P pri Priority for the process or thread. Value should be in the range from SCHED_PRI_MIN (0) to SCHED_PRI_MAX (63). Setting of prior-
ity for the process or thread running at SCHED_OTHER policy is not allowed.
-p pid The target process which will be affected. If the process has more than one thread, all of them will be affected.
If -p is not given, a command to execute must be given on the command line.
-t lid Thread in the specified process. If specified, only this thread in the process will be affected. May only be specified if -p is
also given.
EXAMPLES
Show scheduling information about the process whose ID is ``123'':
# schedctl -p 123
Set the affinity to CPU 0 and CPU 1, policy to SCHED_RR, and priority to 63 for thread whose ID is ``1'' in process whose ID is ``123'':
# schedctl -p 123 -t 1 -A 0,1 -C SCHED_RR -P 63
Run the top(1) command with real-time priority:
# schedctl -C SCHED_FIFO top
SEE ALSO nice(1), getpriority(2), setpriority(2), psrset(8), renice(8)HISTORY
The schedctl command first appeared in NetBSD 5.0.
BSD March 21, 2011 BSD