Hello,
This may have been addressed already somewhere, however I am looking for the easiest/shortest way to validate a response from a user for a file name.
The file name should not have any of the following characters
~`!@#$%^&*()_-+={|\:;"'<,>.?/
Further the response should not have any... (2 Replies)
the user inputs names that have to be inside square brackets
I want to check if the user puts the brackets and if not ask him to re-enter the names (9 Replies)
Hey, im trying to validate a user input and need some help. The input needs to be just a single letter. Im using a case to so this eg:
read answer
case $answer in
*) echo "OK"
;;
*) echo "This is a number"
read answer
;;
*) echo... (2 Replies)
I'm writing a bash shell script to 'help' me post to susepaste (I can NEVER remember the time options).
Here's the code:
#!/bin/bash
##########
#
# Project : personal script.
# Started : Wed Aug 03, 2011
# Author : Habitual
# Description : susepaste c-li script with user... (5 Replies)
hi all,
i have a script that need user input provide all variables that needed to complete a job.
this is my current script:
echo "type file source and it full path :"
read INPUTFILE
if || ;
then
echo "ERROR: you didn't enter a file source or file source is not... (2 Replies)
$Input_filename=$ARGV;
if (!-d $Input_filename && ! -e $Input_filename)
{
print "USAGE: Please enter '$ABCD/def/dsed.txt' as an arguement \n";
exit;
}
1. Input Is suppose to be something like "$ABCD/def/dsed.txt".
if the input is wrong the script should throw an ERROR message.... (2 Replies)
Discussion started by: Rashid Khan
2 Replies
LEARN ABOUT DEBIAN
finance::quote::trustnet
Finance::Quote::Trustnet(3pm) User Contributed Perl Documentation Finance::Quote::Trustnet(3pm)NAME
Finance::Quote::Trustnet - Obtain unit trust prices from trustnet.co.uk
SYNOPSIS
use Finance::Quote;
$q = Finance::Quote->new;
%stockinfo = $q->fetch("uk_unit_trusts","trust-name"); # Can failover to other methods
%stockinfo = $q->fetch("trustnet","trust-name"); # Use this module only.
DESCRIPTION
This module obtains information about UK unit trust prices from www.trustnet.co.uk. The information source "uk_unit_trusts" can be used if
the source of prices is irrelevant, and "trustnet" if you specifically want to use trustnet.co.uk.
UNIT TRUST NAMES
Unfortunately there is no unique identifier for unit trust names. Therefore enough of the name should be given including spaces to yield a
unique match. Trustnet sometimes uses abbreviated names, and the string given should match the abbreviation.
Consult http://www.trustnet.co.uk/ut/funds/perf.asp?sort=0 to find a match for your unit trusts.
Example "jupiter income"
LABELS RETURNED
Information available from Trustnet may include the following labels: exchange method source name currency bid ask yield price. In case of
a unit trust, "price" returns the offer (ask) price. In case of an OIEC, the unique price is returned in "bid", "ask" and "price".
SEE ALSO
Trustnet website - http://www.trustnet.co.uk/
Finance::Quote::Yahoo::USA
perl v5.14.2 2012-05-06 Finance::Quote::Trustnet(3pm)