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
bibtex8
BIBTEX8(1) User Commands BIBTEX8(1)NAME
bibtex8 - 8-bit Big BibTeX version 0.99c
SYNOPSIS
bibtex8 [options] aux-file
DESCRIPTION
8-bit BibTeX is an enhanced, portable C version of BibTeX 0.99. It has been enhanced in these areas:
- conversion to "big" (32-bit) capacity
- capacity selectable at run time
- flexible support for non-English languages using 8-bit character sets
- well matched to LateX2e and its "inputenc" package
Oren Patashnik, the creator of BibTeX, is working on a new BibTeX 1.0 that will be a modern implementation supporting large capacities and
non-English languages (see TUGboat, pages 269--274, volume 15, number 3, September 1994). He is content for this version to be released,
but hopes that people will eventually migrate to BibTeX 1.0 when it is released. Its release date is uncertain at the moment.
OPTIONS
-? --help
display this help text
-7--traditional
operate in the original 7-bit mode
-8--8bit
force 8-bit mode, no CS file used
-c--csfile FILE
read FILE as the BibTeX character set and sort definition file
-d--debug TYPE
report debugging information. TYPE is one or more of all, csf, io, mem, misc, search.
-s--statistics
report internal statistics
-t--trace
report execution tracing
-v--version
report BibTeX version
-B--big
set large BibTeX capacity
-H--huge
set huge BibTeX capacity
-W--wolfgang
set really huge BibTeX capacity for Wolfgang
-M--min_crossrefs ##
set min_crossrefs to ##
--mcites ##
allow ## cites in the .aux files
--mentints ##
allow ## integer entries in the .bib databases
--mentstrs ##
allow ## string entries in the .bib databases
--mfields ##
allow ## fields in the .bib databases
--mpool ##
set the string pool to ## bytes
--mstrings ##
allow ## unique strings
--mwizfuns ##
allow ## wizard functions
AUTHORS
bibtex8 was written by Niel Kempson <kempson@snowyowl.co.uk> and Alejandro Aguilar-Sierra <asierra@servidor.unam.mx>. This manpage was
written by Norbert Preining for Debian/GNU Linux and may be used, modified and/or distributed freely by anyone.
bibtex8 3.71 April 2006 BIBTEX8(1)