08-03-2001
Here is the book recommended in this thread:
<CENTER>
<A HREF="http://www.amazon.com/exec/obidos/ASIN/1565922255/silkroadcom"><IMG SRC="http://images.amazon.com/images/P/1565922255.01.MZZZZZZZ.jpg" width=107 height=140 align=center border=0></a>
</CENTER>
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
I have a piece of code ...wherein I need to assign the following ...
1) A command line argument to a variable
e.g origCount=ARGV
2) A unix command to a variable
e.g result=`wc -l testFile.txt`
in my awk shell script
When I do this :
print "origCount" origCount --> I get the... (0 Replies)
Discussion started by: sweta_doshi
0 Replies
2. Shell Programming and Scripting
Sorry for the duplicate thread this one is similar to the one in
https://www.unix.com/shell-programming-scripting/88132-awk-sed-script-read-values-parameter-files.html#post302255121
Since there were no responses on the parent thread since it got resolved partially i thought to open the new... (4 Replies)
Discussion started by: rajan_san
4 Replies
3. UNIX for Dummies Questions & Answers
I have a script problem that I am not able to solve due my very limited understanding of unix/awk.
This is the contents of test.sh
awk '{print $1}'
From the prompt if I enter:
./test.sh Hello World
I would expect to see "Hello" but all I get is a blank line. Only then if I enter "Hello... (2 Replies)
Discussion started by: JasonHamm
2 Replies
4. Shell Programming and Scripting
input1
a_a a/a 10 100
a1 a_a 20 200
b1 b_b 30 300
input2
a_a a/a xxx yyy
a1 a1 lll ppp
b1 b_b kkk ooo
output
a_a a/a 10 100 xxx yyy (2 Replies)
Discussion started by: ruby_sgp
2 Replies
5. Shell Programming and Scripting
Hello all,
Here is what my bash script does: sums number columns, saves the tot in new column, outputs if tot >= threshold val:
> cat getnon0file.sh
#!/bin/bash
this="getnon0file.sh"
USAGE=$this"
InFile="xyz.38"
Min="0.05"
#
awk '{sum=0; for(n=2; n<=NF; n++){sum+=$n};... (4 Replies)
Discussion started by: catalys
4 Replies
6. Shell Programming and Scripting
Hi,
I have a situation to compare one file, say file1.txt with a set of files in directory.The directory contains more than 100 files.
To be more precise, the requirement is to compare the first field of file1.txt with the first field in all the files in the directory.The files in the... (10 Replies)
Discussion started by: anandek
10 Replies
7. Shell Programming and Scripting
below is the output xml string from some other command and i will be parsing it using awk
cat /tmp/alerts.xml
<Alert id="10102" name="APP-DS-ds_ha-140018-componentFailure-S" alertDefinitionId="13982" resourceId="11427" ctime="1359453507621" fixed="false" reason="If Event/Log Level(ANY) and... (2 Replies)
Discussion started by: vivek d r
2 Replies
8. Shell Programming and Scripting
Hi,
I am trying to pass awk field to a command line executed within awk (need to convert a timestamp into formatted date).
All my attempts failed this far.
Here's an example.
It works fine with timestamp hard-codded into the command
echo "1381653229 something" |awk 'BEGIN{cmd="date -d... (4 Replies)
Discussion started by: tuxer
4 Replies
LEARN ABOUT DEBIAN
derivations
DERIVATIONS(7) Derivations of Applied Mathematics DERIVATIONS(7)
NAME
derivations - book: Derivations of Applied Mathematics
DESCRIPTION
Understandably, program sources rarely derive the mathematical formulas they use. Not wishing to take the formulas on faith, a user might
nevertheless reasonably wish to see such formulas somewhere derived.
Derivations of Applied Mathematics is a book which documents and derives many of the mathematical formulas and methods implemented in free
software or used in science and engineering generally. It documents and derives the Taylor series (used to calculate trigonometrics), the
Newton-Raphson method (used to calculate square roots), the Pythagorean theorem (used to calculate distances) and many others.
READING THE BOOK
Among other ways, you can read the book on your computer screen by opening the file /usr/share/doc/derivations/derivations.ps.gz with the
gv(1) program under X(7). To print the book on a standard postscript printer, just zcat(1) then lpr(1) the same file.
FILES
/usr/share/doc/derivations/derivations.ps.gz
the book in postscript format
/usr/share/doc/derivations/derivations.pdf.gz
the book in PDF
BUGS
The book is a work in progress.
AUTHOR
The book and this manpage are written by Thaddeus H. Black, who also maintains the Debian package derivations in which they are distrib-
uted. Users who need to contact the author in his role as Debian package maintainer can reach him at <thb@debian.org>. However, most e-
mail will naturally be about the book itself: this should be sent to <thb@derivations.org>.
COPYLEFT
Copyright (C) 1983-2010 Thaddeus H. Black.
The book, this manpage and the entire derivations distribution are free software. You can redistribute them and/or modify them under the
terms of the GNU General Public License, version 2.
SEE ALSO
gv(1) [gv], zcat(1) [gzip], psselect(1) [psutils], lpr(1) [lpr], octave(1) [octave]
Thaddeus H. Black 10 March 2010 DERIVATIONS(7)