Sponsored Content
Top Forums Shell Programming and Scripting Test file script - if evaluation failing Post 302819303 by Corona688 on Monday 10th of June 2013 03:05:28 PM
Old 06-10-2013
Quote:
Originally Posted by viallos
Question is why it is not working with double brackets while working for other files?
Interesting, I wouldn't have expected that, I thought double vs single brackets was incidental.

The double brackets have different behavior of course, but some of their behavior is shared, and I thought file expansion on unquoted variables was one of them...
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Test File Reading & Validation using Shell script

Please help develop script for below requirement -------Sample file------------------------------- HSVSHOSTRECON 20090115011817BP DARMAR60064966247003504720000000000000000000066626000000000000133000003D003463001332 ... (14 Replies)
Discussion started by: niraj_bhatt
14 Replies

2. Shell Programming and Scripting

Display which test in the if/else is failing

So I have a script that monitors my drives (/dev/sda and /dev/sdb) using smartctl (smartmontools). I'm by no means an expert in scripting, so this was my attempt at creating a way to email me if one of the values in smartctl output goes above a set threshold. My question is, I'm trying to edit... (5 Replies)
Discussion started by: bound4h
5 Replies

3. Shell Programming and Scripting

Expect script help needed- script failing if router unavailable

Hey all. Sometimes I'm tasked to change some router configs for the entire network (over 3,000 Cisco routers). Most of the time its a global config parameter so its done with a loop and an IP list as its the same configuration change for all routers. This is working OK. However, sometimes an... (3 Replies)
Discussion started by: mrkz1974
3 Replies

4. UNIX for Dummies Questions & Answers

File operations are failing inside the script

Hi, does any one know the environmental parameter that I have to set so as to make sure the file operations run properly within the script. right now when I am doing a cat from within the script nothing happens, same is the case when I do a grep. when I am doing awk '{print $0 }' its printing... (1 Reply)
Discussion started by: ahmedwaseem2000
1 Replies

5. Shell Programming and Scripting

Output redirection of c binary file to a file in shell script is failing

I am struck up with a problem and that is with output redirection. I used all the ways for the redirection of the output of c binary to a file, still it is failing. Here are the different ways which I have used: ./a.out | tee -a /root/tmp.txt 2>&1 ./a.out | tee -a /root/tmp.txt 1>&1 ./a.out |... (2 Replies)
Discussion started by: Maya29988
2 Replies

6. Shell Programming and Scripting

modify the test file by any script

Hi All the Helpers! I have a text file which looks like input.txt.I would request to please suggest me how can I make this file look like output.txt input.txt VOP 111 0 1 2 DEM 111 0 222 333 444 555 DEM 879 888 987 888 989 DEM 879 888 987 888 989 VOP 118 0 12 3 6... (7 Replies)
Discussion started by: Indra2011
7 Replies

7. UNIX for Dummies Questions & Answers

Script test failing

Testing some old script developed by different user. #!/usr/bin/sh case "$0" in */*) cmd="$0";; *) cmd=`which "$0"`;; esac dir=`dirname "$cmd"` node="$dir/." echo $node below two simple tests are failing, I am not seeing any Control+M characters in the script file and I am not able... (4 Replies)
Discussion started by: srimitta
4 Replies

8. UNIX for Advanced & Expert Users

PERL DBD make test on Linux failing

I am installing Oracle DBD to PERL 5.16.3 and during make test , I am running into this error :rm -f blib/arch/auto/DBD/Oracle/Oracle.so LD_RUN_PATH="/opt/oracle/product/11.2.0/racdb11204/lib" gcc -m32 -shared -O2 -L/usr/local/lib -fstack-protector Oracle.o dbdimp.o oci8.o -o... (3 Replies)
Discussion started by: talashil
3 Replies

9. UNIX for Beginners Questions & Answers

Error with file test script

Dear friends i am getting error when i run below script #!/bin/bash echo "Enter the name of the file" read file_name if then If then echo "add some text to quit ctrld" cat >> $file_name else echo "the file does not have write permission" fi else echo "$file_name does not... (1 Reply)
Discussion started by: Ibrahims1
1 Replies

10. Shell Programming and Scripting

Evaluation of test command

Could somebody please explain to me why and how the highlighted line(s) (?) of code puts the "test" evaluation into "result" and then to $enable_static ? Or does not ? I did comment out the original code and changed it to what I feel is less cryptic , but the "result" is still wrong =... (3 Replies)
Discussion started by: anne
3 Replies
HYPERG(3)						User Contributed Perl Documentation						 HYPERG(3)

NAME
PDL::GSLSF::HYPERG - PDL interface to GSL Special Functions DESCRIPTION
This is an interface to the Special Function package present in the GNU Scientific Library. SYNOPSIS
Functions FUNCTIONS
gsl_sf_hyperg_0F1 Signature: (double x(); double [o]y(); double [o]e(); double c) /* Hypergeometric function related to Bessel functions 0F1[c,x] = Gamma[c] x^(1/2(1-c)) I_{c-1}(2 Sqrt[x]) Gamma[c] (-x)^(1/2(1-c)) J_{c-1}(2 Sqrt[-x]) gsl_sf_hyperg_1F1 Signature: (double x(); double [o]y(); double [o]e(); double a; double b) Confluent hypergeometric function for integer parameters. 1F1[a,b,x] = M(a,b,x) gsl_sf_hyperg_U Signature: (double x(); double [o]y(); double [o]e(); double a; double b) Confluent hypergeometric function for integer parameters. U(a,b,x) gsl_sf_hyperg_2F1 Signature: (double x(); double [o]y(); double [o]e(); double a; double b; double c) Confluent hypergeometric function for integer parameters. 2F1[a,b,c,x] gsl_sf_hyperg_2F1_conj Signature: (double x(); double [o]y(); double [o]e(); double a; double b; double c) Gauss hypergeometric function 2F1[aR + I aI, aR - I aI, c, x] gsl_sf_hyperg_2F1_renorm Signature: (double x(); double [o]y(); double [o]e(); double a; double b; double c) Renormalized Gauss hypergeometric function 2F1[a,b,c,x] / Gamma[c] gsl_sf_hyperg_2F1_conj_renorm Signature: (double x(); double [o]y(); double [o]e(); double a; double b; double c) Renormalized Gauss hypergeometric function 2F1[aR + I aI, aR - I aI, c, x] / Gamma[c] gsl_sf_hyperg_2F0 Signature: (double x(); double [o]y(); double [o]e(); double a; double b) Mysterious hypergeometric function. The series representation is a divergent hypergeometric series. However, for x < 0 we have 2F0(a,b,x) = (-1/x)^a U(a,1+a-b,-1/x) 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.8.0 2003-01-29 HYPERG(3)
All times are GMT -4. The time now is 10:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy