Dear All,
please tell me any script which can able to calculate the bus hours by claculating the volume for example
hour volume
1 100
2 200
3 300
4 7000
5 50
6 80
7 77
8 77
9 165
10 888
11 99
12 89
13 33
14 676
15 878
16 90
17 56 (14 Replies)
Hi all,
I have a flat file like
10 steven
25 mike
47 Charles
127 Nancy
34 steven
23 mike
67 Charles
7761 Nancy
8 steven
54 mike
88 Charles
1267 Nancy
I need to calculate the total of steven and all the members , for this I am using like
grep "`sed -n 1p patterns.txt`"... (7 Replies)
Hi
First field is the Record Type. A Record Type 5 can have multiple Record Type 6's before another Record Type 5 appears.
I want to calculate the total of fields at position 8-11 on Record type 6 when Record Type 5 has a field at position 11-14 equals to '2222'. then it should delete the lines... (2 Replies)
The file content is dynamic and using this format:
name1 number1
name2 number2
name3 number3
name4 number4
....................
Need a smooth way to calculate the sum of all the numbers in that file (number1 + number2 + number3 + number4........ = total ) (11 Replies)
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Hi,
I am trying to grep a particular string from the files of 2 different servers without copying and calculate the total count of its occurence on both files.
File structure is same on both servers and for reference as follows:
27-Aug-2010... (4 Replies)
HI
I have a file
# cat marks.txt
MARKS LIST
2013
Name english french chinese latin total_marks
wer 34 45 67 23
wqa 12 39 10 56
wsy 23 90 23 78
Now i need to find the total marks of each student using... (11 Replies)
Hi All ,
I have the following script as below , I tried to modify to meet the requirement , could someone help ? very thanks
================================================================================================
while read STR NAME; do
Total=0
MyString="$STR"
GetData () {... (18 Replies)
Hi
I am trying to calculate memory used by Linux System
free -m
total used free shared buffers cached
Mem: 32109 31010 1099 0 3600 7287
-/+ buffers/cache: 20121 11987
Swap: 10239 1282 8957
Now according to my requirement Im calculating memory using below cmd
free -m | awk 'NR==3{printf... (2 Replies)
Discussion started by: sam@sam
2 Replies
LEARN ABOUT HPUX
getbuildlog
GETBUILDLOG(1) General Commands Manual GETBUILDLOG(1)NAME
getbuildlog - download build logs from Debian auto-builders
SYNOPSIS
getbuildlog package [version-pattern] [architecture-pattern]
DESCRIPTION
getbuildlog downloads build logs of package from Debian auto-builders. It downloads build logs of all versions and for all architectures if
version-pattern and architecture-pattern are not specified or empty, otherwise only build logs whose versions match version-pattern and
build logs whose architectures match architecture-pattern will be downloaded. The version and architecture patterns are interpreted as
extended regular expressions as described in grep(1).
If version-pattern is "last" then only the logs for the most recent version of package found on buildd.debian.org will be downloaded.
If version-pattern is "last-all" then the logs for the most recent version found on each build log index will be downloaded.
OPTIONS -h, --help
Show usage information and examples.
-V, --version
Show version and copyright information.
EXAMPLES
getbuildlog hello 2.2-1 amd64
Download amd64 build log for hello version 2.2-1.
getbuildlog glibc "" mips.*
Download mips(el) build logs of all glibc versions.
getbuildlog wesnoth .*bpo.*
Download all build logs of backported wesnoth versions.
AUTHOR
Written by Frank S. Thomas <fst@debian.org>.
DEBIAN Debian Utilities GETBUILDLOG(1)