07-01-2006
Here is a great resource written by Bruce Barnett
UNIX SHELL Quote Tutorial
I think this will help you to understand how to avoid such problems
10 More Discussions You Might Find Interesting
1. HP-UX
i've same failure too, but this command boot pri isl
not work/not found
Thanks! (1 Reply)
Discussion started by: pantas manik
1 Replies
2. Shell Programming and Scripting
Anyone have an idea why this if statement does not work correctly?
"test2.sh" 18 lines, 386 characters
#!/usr/bin/sh
WARNING=80
CRITICAL=95
check_it()
{
if ] || ];then
echo "YES ] || ]"
else
echo "NO ] || ]"
fi
}
check_it 80.1
check_it 81.1 (3 Replies)
Discussion started by: 2dumb
3 Replies
3. Shell Programming and Scripting
Hi,
I have a script where I am trying to set a local variable using the following,
MYVAR="$NAME"_"$NAME2".txt
where say,
NAME = one
NAME2 = two
so I want the output one_two.txt but what I am getting is,
two.txt
basically the $NAME2 is overwriting, what am I doing wrong?
... (3 Replies)
Discussion started by: walsh_j
3 Replies
4. Shell Programming and Scripting
I have the following data from a manual database dump. I need to format the columns so that I can import them into an excel spread sheet. So far I have been able to get past the hurdles with vi and grep. Now I have one last issue that I can't get past. Here is an example of the data.
Here is... (18 Replies)
Discussion started by: Chris_Rivera
18 Replies
5. Shell Programming and Scripting
Hello
This should be easy, but bash is giving me headaches.
At the command line the following command works:
duplicity --include /home --exclude '**' / file:///foo
Doing that from a script is not straightforward. Note that it is basically a requirement that I place the... (3 Replies)
Discussion started by: brsett
3 Replies
6. Shell Programming and Scripting
When script is running you only see when some of the commands are not successfull.
Is there a way to see which command are executed and to show the substitution of variables as every line is executed ? (3 Replies)
Discussion started by: gr0124
3 Replies
7. Shell Programming and Scripting
I am facing a problem while storring the grep results into a variable. I need to count the occurence of the pattern \, in a file and store that in a variable. I have given the below command
p=`grep -c '\\,' filename`
But while echoing the variable, i am getting the total number of lines in... (2 Replies)
Discussion started by: renjithv
2 Replies
8. Shell Programming and Scripting
Hi Folks,
I am trying to read input from single line from a file and pass the read variable to one of the commands. However when I run the script it keeps the variable to be empty. I can however echo the variable ( but why it is empty when it goes to the command).
Any help will be... (6 Replies)
Discussion started by: bhadu
6 Replies
9. UNIX for Dummies Questions & Answers
when creating a for loop (or any other parameter) then using that paramter in a background command execution I only see the parameter name, not the value.
I have tried eval and exec and a host of other options to try to get the text of the parameter showing, so i know what step is left...
e.g.... (3 Replies)
Discussion started by: OoozyFoot
3 Replies
10. Shell Programming and Scripting
Hi everyone,
I have been using a shell script for the last 6 months to copy a database from a POS system, then analyse the database and print the current sales total. This has worked flawlessly, the only issue was that I had hard coded the IP address of the POS and occasionally I would need to... (23 Replies)
Discussion started by: gjws
23 Replies
LEARN ABOUT SUSE
finance::quote::lerevenu
Finance::Quote::LeRevenu(3) User Contributed Perl Documentation Finance::Quote::LeRevenu(3)
NAME
Finance::Quote::LeRevenu Obtain quotes from http://bourse.lerevenu.com.
SYNOPSIS
use Finance::Quote;
$q = Finance::Quote->new;
%info = Finance::Quote->fetch("LeRevenu","FR0000031122"); # Only query LeRevenu
%info = Finance::Quote->fetch("france","ml"); # Failover to other sources OK.
DESCRIPTION
This module fetches information from the "Paris Stock Exchange", http://bourse.lerevenu.com. All stocks are available.
This module is loaded by default on a Finance::Quote object. It's also possible to load it explicity by placing "LeRevenu" in the argument
list to Finance::Quote->new().
This module provides both the "lerevenu" and "france" fetch methods. Please use the "france" fetch method if you wish to have failover
with future sources for French stocks. Using the "lerevenur" method will guarantee that your information only comes from the Paris Stock
Exchange.
Information obtained by this module may be covered by http://bourse.lerevenu.com terms and conditions See http://bourse.lerevenu.com for
details.
LABELS RETURNED
The following labels may be returned by Finance::Quote::LeRevenu : name, last, date, p_change, open, high, low, close, volume, currency,
method, exchange.
SEE ALSO
Le Revenu, http://bourse.lerevenu.com
perl v5.12.1 2010-07-05 Finance::Quote::LeRevenu(3)