02-16-2012
But I should say that's a "bad" programming practise.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello collegues,
I am attempting to use awk to search file1 (serverlist.csv) from each row with file2 (supported.txt). If the is no entry exists in serverlist then output to a file called notsupp.out if there is an entry output to supp.out
I can do this with basic shell scripting however... (0 Replies)
Discussion started by: chlawren
0 Replies
2. Shell Programming and Scripting
How do you make the getline function return to the original line?
The example below should make it clear where I am currently going wrong.
Thanks
AWK SCRIPT:
-------------
awk -F '-' '{
tmpLine = "EMPTY"
print "CURRENT LINE :"$0
getline tmpLine
print "NEXT LINE :"tmpLine
}'... (1 Reply)
Discussion started by: garethsays
1 Replies
3. Shell Programming and Scripting
I am using awk and want to use getline from a file like below
getline x < file
However file consists of two columns and I only want to store $2
Any way I can do this?
---------- Post updated at 06:54 AM ---------- Previous update was at 06:45 AM ----------
Done something like this.... (1 Reply)
Discussion started by: kristinu
1 Replies
4. Shell Programming and Scripting
i wrote following script to test getline
BEGIN{
while ( "who" | getline > 0)
nr++
print nr
}
when i run this script as
awk -f scriptname (2 Replies)
Discussion started by: asalman.qazi
2 Replies
5. Shell Programming and Scripting
Greetings,
I have about 3000 files that I want to search. The first column in all of these 3000 files has a unique serial number on each line. The subsequent columns have lots of data.
I have another masterfile with three columns to help me find all the data I need in a moments notice:
col 1... (15 Replies)
Discussion started by: jeeplou
15 Replies
6. UNIX for Dummies Questions & Answers
BEGIN {
system("clear")
blank = " "
printf("Please enter your name or emp# : > ")
getline < "/dev/tty"
printf(">>>>> %s",$1)
}
/$1/ {..........
I would like for the customer to enter name or... (3 Replies)
Discussion started by: Morph797
3 Replies
7. Programming
I can not get 'getline()' to compile. I have tried.
string curLine; //= compiler error
char* curLine; //=compiler error
char curLine; //=compiler error
Every example I see uses a string as a getline(); parameter. It does not work for me on Fedora14 with gcc-c++. Thank you so much. This... (1 Reply)
Discussion started by: sepoto
1 Replies
8. Shell Programming and Scripting
I'm running the script below and get the output below against a file with
lineA=aaa
lineB=bbb
lineC=ccc
lineD=ddd
I get output:
lineC=ccc
lineD=ddd
I need the output to be:
lineB=bbb
lineC=ccc
lineD=ddd
cat filename | nawk '/lineA=aaa/ {
getline;
do {
getline (3 Replies)
Discussion started by: toor13
3 Replies
9. Shell Programming and Scripting
Here is I want to do:
find lines in file filteredtrace.txt which is not continued as
a multiply of 4 and strip them from file original_trace_framno.
problem is awk used the ' symbol
so pipe of getline has to use the " symbol
while agument of sed has to use the " symbol,
it doesn't... (8 Replies)
Discussion started by: lzq420241
8 Replies
10. Shell Programming and Scripting
Howdy Folks,
It seems like it is always awk that confuses the heck out of me and I even have books and examples.
I have this line:
awk '{if (/clientIP/)(SRV = $NF); if ($2 ~ /BUNDLE-GIM/) getline; if ($2 ~ /r100595/) {print SRV,"BUNDLE-GIM",$2}}' post.txt
to parse this text:
<api... (4 Replies)
Discussion started by: port43
4 Replies
LEARN ABOUT SUSE
pdl::gslsf::transport
TRANSPORT(3) User Contributed Perl Documentation TRANSPORT(3)
NAME
PDL::GSLSF::PSI - PDL interface to GSL Special Functions
DESCRIPTION
This is an interface to the Special Function package present in the GNU Scientific Library.
Transport function:
J(n,x) := Integral[ t^n e^t /(e^t - 1)^2, {t,0,x}]
SYNOPSIS
Functions
FUNCTIONS
gsl_sf_transport_2
Signature: (double x(); double [o]y(); double [o]e())
J(2,x)
gsl_sf_transport_2 does not process bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the
input piddles.
gsl_sf_transport_3
Signature: (double x(); double [o]y(); double [o]e())
J(3,x)
gsl_sf_transport_3 does not process bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the
input piddles.
gsl_sf_transport_4
Signature: (double x(); double [o]y(); double [o]e())
J(4,x)
gsl_sf_transport_4 does not process bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the
input piddles.
gsl_sf_transport_5
Signature: (double x(); double [o]y(); double [o]e())
J(5,x)
gsl_sf_transport_5 does not process bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the
input piddles.
AUTHOR
This file copyright (C) 1999 Christian Pellegrin <chri@infis.univ.trieste.it> All rights reserved. There is no warranty. You are allowed to
redistribute this software / documentation under certain conditions. For details, see the file COPYING in the PDL distribution. If this
file is separated from the PDL distribution, the copyright notice should be included in the file.
The GSL SF modules were written by G. Jungman.
perl v5.12.1 2010-07-05 TRANSPORT(3)