how to manipulate with lines while playing with data
hello everyone,
well I have a file which contains data, I want to add the data on hourly basis, like my file contains data for 24 hours, (so a total of 1440 [60*24]) lines.
Now i want to add the data on hourly basis to get average values.
like if I use (head) command it is ok for first go, but for next next step how can I use it starting from 60 to 120 and so on.
for the first case (from 0 to 60 sec i.e. one hour) i use awk utility and its giving me correct result but for further i cant. Here is the code for first case:
I have a list of names and email addresses, like this. The <tab> markers are actually tabs.
joe.blow <tab> joe.blow@wherever.com
tom.t.hall <tab> tom.t.hall@wherever.com
john.r.smith <tab> john.r.smith@wherever.com
sally.jones <tab> sally.jones@state.or.us
I want to parse the data so that... (3 Replies)
Hi everybody:
I have a problem with how I have to manipulate the data which have specific format like this:
249. 0.30727021E+05 0.30601627E+05 0.37470780E-01 -0.44745335E+02 0.82674536E+03
248. 0.30428182E+05 0.30302787E+05 0.40564921E-01 -0.45210293E+02 ... (5 Replies)
All,
I have the following format of data in a spreadsheet
A 1
2
3
4
B 1
2
3
4
where 'A' is value of 'A1', '1 2 3 4' is value of cell B1, 'B' is value of cell A2, and '1 2 3 4' is value of cell B2.
There... (12 Replies)
Hey All,
I need to reorganize a file's text. Here is the source:
host John_Doe
filename "config.cfg";
hardware ethernet 98:10:3d:13:8f:98;
fixed-address 10.10.10.29;
}
host Jane_Doe
filename "config.cfg";
hardware ethernet 98:13:11:fd:5a:57;
fixed-address 10.10.5.24;
}
host... (2 Replies)
Quick problem statement:
How to read/extract data from a big-big file.
Details:
We are having a big big problemo in the work we are working at. We are using solaris plarform E25.
There is a very big file created somewhere around 200 million records anad the lenght of each record is more than... (3 Replies)
Input
Participant number: HAC
Position type Location Distance_start Distance_end Range Mark
1 1 + Front 808 1083 276
2 1 + Front 1373 1636 264
3 1 - Back 1837 2047 211
Participant number: BCD
Position type... (6 Replies)
Hi,
I have one file, say file 1, that has data like below where 19900107 is the date,
19900107 12 144 129 0.7380047
19900108 12 168 129 0.3149017
19900109 12 192 129 3.2766666E-02
... (3 Replies)
Hello;
I have this rather tricky problem to solve --(to me, anyways) ..
I am processing the following one liner with tcpdump..
tcpdump -i T3501 -A ether host 00:1e:49:29:fc:c9 or ether host 00:1b:2b:86:ec:1b or ether host 00:21:1c:98:a4:08 and net 149.83.6.0/24 | grep --line-buffered -B... (5 Replies)
Hello good afternoon to everyone.
I'm new to the forum and would like to request your help in handling data. I hope my English is clear.
I have a file (Dato01.txt) to contine the following structure.
# Col1 - Col2 - Col3 - Col4
Patricia started Jun 22 05:22:58
Carolina started Jun... (5 Replies)
Discussion started by: kelevra
5 Replies
LEARN ABOUT SUNOS
size
size(1) User Commands size(1)NAME
size - print section sizes in bytes of object files
SYNOPSIS
size [-f] [-F] [-n] [-o] [-V] [-x] filename...
DESCRIPTION
The size command produces segment or section size information in bytes for each loaded section in ELF object files. size prints out the
size of the text, data, and bss (uninitialized data) segments (or sections) and their total.
size processes ELF object files entered on the command line. If an archive file is input to the size command, the information for each
object file in the archive is displayed.
When calculating segment information, the size command prints out the total file size of the non-writable segments, the total file size of
the writable segments, and the total memory size of the writable segments minus the total file size of the writable segments.
If it cannot calculate segment information, size calculates section information. When calculating section information, it prints out the
total size of sections that are allocatable, non-writable, and not NOBITS, the total size of the sections that are allocatable, writable,
and not NOBITS, and the total size of the writable sections of type NOBITS. NOBITS sections do not actually take up space in the filename.
If size cannot calculate either segment or section information, it prints an error message and stops processing the file.
OPTIONS
The following options are supported:
-f Prints out the size of each allocatable section, the name of the section, and the total of the section sizes. If there is no sec-
tion data, size prints out an error message and stops processing the file.
-F Prints out the size of each loadable segment, the permission flags of the segment, then the total of the loadable segment sizes.
If there is no segment data, size prints an error message and stops processing the file.
-n Prints out non-loadable segment or non-allocatable section sizes. If segment data exists, size prints out the memory size of each
loadable segment or file size of each non-loadable segment, the permission flags, and the total size of the segments. If there is
no segment data, size prints out, for each allocatable and non-allocatable section, the memory size, the section name, and the
total size of the sections. If there is no segment or section data, size prints an error message and stops processing.
-o Prints numbers in octal, not decimal.
-V Prints the version information for the size command on the standard error output.
-x Prints numbers in hexadecimal, not decimal.
EXAMPLES
The examples below are typical size output.
Example 1: Producing size information
example% size filename
2724 + 88 + 0 = 2812
Example 2: Producing allocatable section size information
example% size -f filename
26(.text) + 5(.init) + 5(.fini) = 36
Example 3: Producing loadable segment size information
example% size -F filename
2724(r-x) + 88(rwx) + 0(rwx) = 2812 ... (If statically linked)
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWbtool |
+-----------------------------+-----------------------------+
SEE ALSO as(1), cc(1B), ld(1), ar.h(3HEAD), a.out(4), attributes(5)NOTES
Since the size of bss sections is not known until link-edit time, the size command will not give the true total size of pre-linked objects.
SunOS 5.10 16 Oct 1996 size(1)