8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All
I am a new in scripting language and I would like help for you guys
I would like to create a file named constant.h and search into all files *.m in specific directory for a reg-exp @"LBL_]+" exp: @"LBL_75847" , and write those matchs to constant.h if there are not written (no... (15 Replies)
Discussion started by: molwiko
15 Replies
2. Shell Programming and Scripting
$var1="LEN";
$VAR2="CODLENTT";
now, var2 contains var1(LEN).How do i check this in perl....
whether one string is a part of another..?
if (<logic>)
{
my operation;
}
what'd be the logic.. (4 Replies)
Discussion started by: vijay_0209
4 Replies
3. Shell Programming and Scripting
Hi,
I am using the following piece of code for extracting some data from in between some tags ...
$text =~ /<TAG1>(.*)<\/TAG1>.*<TAG2>(.*)<\/TAG2>.*<TAG3>(.*)<\/TAG4>.*<TAG5>(.*)<\/TAG5>/;
$tag1=$1;
print "\n$tag1";
But I am getting an error like
Use of uninitialized value in... (1 Reply)
Discussion started by: King Nothing
1 Replies
4. UNIX for Dummies Questions & Answers
Hi, I need
to make some extraction . with the following input to get the right output.
input: /etc/exp/home/bin ====> output: exp
and
input: aex1234 ===> output: ex
Thanks for your help, (4 Replies)
Discussion started by: yeclota
4 Replies
5. Shell Programming and Scripting
$ cat file.txt
asd
<AA>dev
<LL>def
<RR>sha
This works for me:
$ sed -r 's/^ .*<LL>def/\t<LL>my/' file.txt
asd
<AA>dev
<LL>my
<RR>sha
But, this does not work for me:
$ sed -r 's/^\s+<LL>def/\t<LL>my/' file.txt
asd
... (1 Reply)
Discussion started by: demoprog
1 Replies
6. Shell Programming and Scripting
Hi,
Should be a difference between ']]*' and ']+' ?
I use them in bash with sed and grep.
Thanks (1 Reply)
Discussion started by: ynir
1 Replies
7. Shell Programming and Scripting
in shell scripting there is extensive usage of
i> regular expression
ii>sed
iii>awk
can anyone tell me the suitable contexts ...i mean which one is suitable for what kind of operation.
like the reg-exp and sed seems to be doing the same job..i.e pattern matching (1 Reply)
Discussion started by: mobydick
1 Replies
8. Shell Programming and Scripting
Any idea please:
How to pass a reg. exp. variable to awk call in a shell???
Thank u
#!/bin/sh
reg_exp=name
awk '/reg_exp/{
print;
}' $1 (5 Replies)
Discussion started by: andy2000
5 Replies
EXP(3pm) User Contributed Perl Documentation EXP(3pm)
NAME
PDL::GSLSF::EXP - PDL interface to GSL Special Functions
DESCRIPTION
This is an interface to the Special Function package present in the GNU Scientific Library.
SYNOPSIS
FUNCTIONS
gsl_sf_exp
Signature: (double x(); double [o]y(); double [o]e())
Exponential
gsl_sf_exp 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_exprel_n
Signature: (double x(); double [o]y(); double [o]e(); int n)
N-relative Exponential. exprel_N(x) = N!/x^N (exp(x) - Sum[x^k/k!, {k,0,N-1}]) = 1 + x/(N+1) + x^2/((N+1)(N+2)) + ... = 1F1(1,1+N,x)
gsl_sf_exprel_n 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_exp_err
Signature: (double x(); double dx(); double [o]y(); double [o]e())
Exponential of a quantity with given error.
gsl_sf_exp_err 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.14.2 2012-05-30 EXP(3pm)