Now I want to sum the values and have the file look like this
I can only compute the first two values and send output to a specific line in a file which is what I want to accomplish. I did this by using these commands:
but I don't know how to compute the rest of the values.
Is there a way to sum the values and delete the values after outputting the answer using awk?
Hi,
I have a huge file & I want to add a specific text in column. But I want to add this text from a specific line number to a specific line number & another text in to another range of line numbers.
To be more specific: lets say my file has 1000 lines & 4 Columns. I want to add text "Hello"... (2 Replies)
using sed to replace a specific string on a specific line number using variables
this is where i am at
grep -v WARNING output | grep -v spawn | grep -v Passphrase | grep -v Authentication | grep -v '/sbin/tfadmin netguard -C'| grep -v 'NETWORK>' >> output.clean
grep -n Destination... (2 Replies)
Hi guys ,
I m writing a script to delete a line at particular location.
But i m unable to use variable for specifying line number.
for example.
sed -n '7!p' filename
works fine and deletes 7th line from my file
but
sed -n '$variable!p' filename
gives following error.
sed: -e... (12 Replies)
dear all,
i need your advice
i have sample script like this:
testing.sh
for i in {1..10}
do
echo testing $i
done
but i forgot create "#!/bin/bash" in above "for"
so i want output will like this
testing.sh
#!/bin/bash
for i in {1..10}
do
echo testing $i
done (2 Replies)
Dears,
Good Day !
Plz; i want to sum-up two consecutive values inside one row, and put the summation in a new column.
here the input:
1 2
4 5
6 7
the output should be:
1 2 3
4 5 9
6 7 13
If someone can help me to solve my issue !
thx anyway.
Video tutorial on how to use... (5 Replies)
my requirement is,
consider a file output
cat output
blah sdjfhjkd jsdfhjksdh
sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf
hellow there
this doesnt look good
et cetc etc
etcetera
i want to replace a line of line number 4 ("this doesnt look good") with some other line
... (3 Replies)
I have a simple text file having payment amount value on each line. At the end of day 'n' number of payments created difference in amount that I need to match from this file.
I have information about how many payments created difference and difference amount. Please help me to build shell... (3 Replies)
I have a file (let say file B) like this:
File B:
A1 3 5
A1 7 9
A2 2 5
A3 1 3
The first column defines a filename and the other two define a range in that specific file. In the same directory, I have also three more files (File A1, A2 and A3). Here is 10 sample lines... (3 Replies)
Discussion started by: Bastami
3 Replies
LEARN ABOUT DEBIAN
slasq5.f
slasq5.f(3) LAPACK slasq5.f(3)NAME
slasq5.f -
SYNOPSIS
Functions/Subroutines
subroutine slasq5 (I0, N0, Z, PP, TAU, SIGMA, DMIN, DMIN1, DMIN2, DN, DNM1, DNM2, IEEE, EPS)
SLASQ5
Function/Subroutine Documentation
subroutine slasq5 (integerI0, integerN0, real, dimension( * )Z, integerPP, realTAU, realSIGMA, realDMIN, realDMIN1, realDMIN2, realDN,
realDNM1, realDNM2, logicalIEEE, realEPS)
SLASQ5
Purpose:
SLASQ5 computes one dqds transform in ping-pong form, one
version for IEEE machines another for non IEEE machines.
Parameters:
I0
I0 is INTEGER
First index.
N0
N0 is INTEGER
Last index.
Z
Z is REAL array, dimension ( 4*N )
Z holds the qd array. EMIN is stored in Z(4*N0) to avoid
an extra argument.
PP
PP is INTEGER
PP=0 for ping, PP=1 for pong.
TAU
TAU is REAL
This is the shift.
DMIN
DMIN is REAL
Minimum value of d.
DMIN1
DMIN1 is REAL
Minimum value of d, excluding D( N0 ).
DMIN2
DMIN2 is REAL
Minimum value of d, excluding D( N0 ) and D( N0-1 ).
DN
DN is REAL
d(N0), the last value of d.
DNM1
DNM1 is REAL
d(N0-1).
DNM2
DNM2 is REAL
d(N0-2).
IEEE
IEEE is LOGICAL
Flag for IEEE or non IEEE arithmetic.
Author:
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
April 2012
Definition at line 132 of file slasq5.f.
Author
Generated automatically by Doxygen for LAPACK from the source code.
Version 3.4.1 Sun May 26 2013 slasq5.f(3)