Hi,
I am trying to extracting the sum of all varibles listed in a file.
The code is as follows
##### FILE1 ########
Value1:2
Value2:2
Value3:6
Value4:5
##### shell script ######
#!/bin/sh
total=0 (2 Replies)
I'm trying to understand if it's possible to create a set of variables that are numbered based on another variable (using eval) in a loop, and then call on it before the loop ends.
As an example I've written a script called question (The fist command is to show what is the contents of the... (2 Replies)
Hi
i data looks like this:
student 1
Subject1 45 55
Subject2 44 55
Subject3 33 44
//
student 2
Subject1 45 55
Subject2 44 55
Subject3 33 44
i would like to sum $2, $3 (marks) and divide each entry in $2 and $3 with their respective sums and print for each student as $4 and... (2 Replies)
Hi,
I am unable sum of each column in the loop usng awk command.
Awk is not allowing the parameters in the command.
i am facing the below error.
awk: 0602-562 Field $() is not correct.
Source file
abc.txt
100,200,300,400,500,600,700,800,900
101,201,301,401,501,601,701,801,901
... (1 Reply)
Hi,
I have a file with header, detail and trailer records.
HDR|111
DTL|abc|100|xyz
DTL|abc|50|xyz
TRL|150
I need to add the values in 3rd field from DTL records.
Using awk, I am doing it as follows:
awk -F'|' '$1=="DTL"{a += $3} END {print a}' <source_file>
However, I want to... (3 Replies)
Hi
i have to calculate some numbers, column by column.
Herfore i used a for-loop..
for i in {4..26};do awk -F"," '{x'$i'+=$'$i'}END{print '$i'"\t" x'$i'}' file.tmp;done
----- printout -----
4 660905240
5 71205272
6 8.26169e+07
7 8.85961e+07
8 8.60936e+07
9 7.42238e+07
10 5.6051e+07... (7 Replies)
Discussion started by: IMPe
7 Replies
9. Post Here to Contact Site Administrators and Moderators
i want code in awk with loop to get the sum
* is delimiter in file
TOTAL_AMOUNT=SUM(CLP04)
suppose there are 12 CLP04 segment in my file i want to add upto 5 CLP04 then print next line after BPR segment after calculate the total amount
CLP04 means
ex
... (5 Replies)
Discussion started by: MOHANP12
5 Replies
LEARN ABOUT DEBIAN
fusioninventory-esx
FUSIONINVENTORY-ESX(1p) User Contributed Perl Documentation FUSIONINVENTORY-ESX(1p)NAME
fusioninventory-esx - vCenter/ESX/ESXi remote inventory for FusionInventory or OCSInventory
SYNOPSIS
fusioninventory-esx [ --host host --user user --password password --directory /tmp --tag tag ]
EXAMPLES
% fusioninventory-esx --host myesx --user foo --password bar --directory /tmp
You can import the .ocs file in your inventory server with the fusioninventory-injector tool.
%fusioninventory-injector -v --file /tmp/*.ocs -u https://myserver/ocsinventory
DESCRIPTION
fusioninventory-esx creates inventory of remote ESX/ESXi and vCenter VMware. It uses the SOAP interface of the remote server.
Supported systems:
ESX and ESXi 3.5
ESX and ESXi 4.1
vCenter 4.1
Active Directory users, please note the AD authentication doesn't work. You must create a account on the VMware server.
AUTHORS
This module has been written by TECLIB'.
The maintainer is Goneri LE BOUDER <goneri@rulezlan.org>
The FusionInventory project fusioninventory-devel@lists.alioth.debian.org
SECURITY
The SSL hostname check of the server is disabled.
SEE ALSO
o FusionInventory website: <http://www.FusionInventory.org/>
o project Forge: <http://Forge.FusionInventory.org>
o The source code of the agent is available on:
o Gitorious: <http://gitorious.org/fusioninventory>
o Github: Lhttps://github.com/fusinv/fusioninventory-agent-task-esx>
o The mailing lists:
o http://lists.alioth.debian.org/mailman/listinfo/fusioninventory-devel
<http://lists.alioth.debian.org/mailman/listinfo/fusioninventory-devel>
o http://lists.alioth.debian.org/mailman/listinfo/fusioninventory-user
<http://lists.alioth.debian.org/mailman/listinfo/fusioninventory-user>
o IRC: #FusionInventory on FreeNode IRC Network
BUGS
Please, use the mailing lists as much as possible. You can also use the bugtracker on http://forge.fusionInventory.org
COPYRIGHT
Copyright (C) 2011-2012 FusionInventory project Copyright (C) 2011-2012 TECLIB' ( http://www.teclib.com )
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
perl v5.14.2 2012-03-19 FUSIONINVENTORY-ESX(1p)