Hi,
I am new to Unix shell scripting. Can you please help me with this immediate requirement to code.. The requirement is as given below.
In a directory say Y, I have files like this.
PP_100000_28062006_122731_746.dat
PP_100000_28062006_122731_745.dat
PP_100000_28062006_122734_745.dat... (4 Replies)
Hi ,
I have a file abc.txt which actually contains a directory and file list
-rwxrwxr-x 1 dmadmin mmasapp 334 Dec 03 2001 aafs_006.ksh
-rwxrwxr-x 1 dmadmin mmasapp 1270 Nov 13 2001 mcl_deposit_ftp.ksh
-rwxrwxr-x 1 dmadmin mmasapp 925 Oct 31 2001 ... (1 Reply)
Suppose I have a unix file which contain a lost of 60 files like
filename1
filename2
...
..
...
filename60
I want to write a unix script that will pick up first 10 files in first run
10-20 files in 2 run
20-30 files in 3 run
30-40 files in 4 run
40-50 files in 5 run
50-60 files in 6... (1 Reply)
hi i need shell scrip to pick the oldest file...
i.e i need a script to pick the oldest file
I had input files in my input folder that are created on saturday,monday,tuesday .. i want a script such that first the script should pick saturday file ,then monday and then file created on... (5 Replies)
Hi,
Below is a shell script that i made:-
#!/bin/ksh
#path=/opt/tibco/shared/adaptadores/SSCC/EVEREST/input/
if ;
then
echo "ZIP Exists and now Processing"
for files in /opt/tibco/shared/adaptadores/SSCC/EVEREST/input/T010B04.*
do
unzip $files
echo "Files Unzipped"
echo $files... (4 Replies)
i have files like
1)20131112_abc_01.csv and
2)20131113_abc_01.csv and
3)20131113_abc_02.csv
when i try to fetch the file in the next day. it shud pick the third file..
plz help me..
and i use `date +"%Y%m%d"` command to fetch..it fetches the current date... (2 Replies)
I have file listed like below
-rw-r--r--+ 1 test test 17M Nov 26 14:43 test1.gz
-rw-r--r--+ 1 test test 0 Nov 26 14:44 test2.gz
-rw-r--r--+ 1 test test 0 Nov 27 10:41 test3.gz
-rw-r--r--+ 1 test test 244K Nov 27 10:41 test4.gz
-rw-r--r--+ 1 test test 17M Nov 27 10:41 test5.gz
I... (5 Replies)
Hi.,
I need in perl type ...where this is an example :
assume a directory has 3 files namely:
file1_1445566_201501022.txt
file1_1445566_201502024.txt
file1_1445566_201503009.txt
where ,after second underscore, the number is in YYYYMMDD time-stamp format, I need perl script to pick up... (3 Replies)
Hi ,
Can anyone help me how do perform below requirement in unix.
Step1:we will receive multiple files weekly with same name(as below) in a folder(In folder we will have other files also def.dat,ghf.dat)
Filenames:
1) abc_20171204_052389.dat
2)abc_20171204_052428.dat
DON'T modify... (23 Replies)
Discussion started by: sunnykamal59
23 Replies
LEARN ABOUT DEBIAN
finance::quote::yahoo::asia
Finance::Quote::Yahoo::Asia(3pm) User Contributed Perl Documentation Finance::Quote::Yahoo::Asia(3pm)NAME
Finance::Quote::Yahoo::Asia - Fetch quotes from Yahoo Asia
SYNOPSIS
use Finance::Quote;
$q = Finance::Quote->new;
%info = $q->fetch("asia","CREA.SI"); # Failover to other methods ok.
%info = $q->fetch("yahoo_asia","CREA.SI"); # Use this module only.
DESCRIPTION
This module fetches information from Yahoo Asia. Symbols should be provided in the format "SYMBOL.EXCHANGE", where the exchange code is
one of the following:
SI - Singapore
BO - Bombay
JK - Jakarta
HK - Hong Kong
NS - India
KS - Korea
KL - Kuala Lumpur
NZ - New Zealand
SS - Shanghai
SZ - Shenzhen
TW - Taiwan
TH - Thailand
This module provides both the "asia" and "yahoo_asia" methods. The "asia" method should be used if failover methods are desirable. The
"yahoo_asia" method should be used you desire to only fetch information from Yahoo Europe.
Stocks are returned in the currency of the local exchange. You can use Finance::Quote's set_currency() feature to change the currency in
which information is returned.
This module is loaded by default by Finance::Quote, but can be loaded explicitly by specifying the parameter "Yahoo::Asia" to
Finance::Quote->new().
Information obtained by this module may be covered by Yahoo's terms and conditions. See http://sg.finance.yahoo.com/ for more details.
LABELS RETURNED
This module returns all the standard labels (where available) provided by Yahoo. See Finance::Quote::Yahoo::Base for a list of these. The
currency label is also returned.
BUGS
The currency of each exchange has not been thoroughly confirmed. If you find an exchange is returning in an incorrect exchange, please use
the bug tool at http://sourceforge.net/projects/finance-quote to report it.
SEE ALSO
Yahoo Asia, http://sg.finance.yahoo.com/
Finance::Quote::Yahoo::Base
perl v5.14.2 2014-03-03 Finance::Quote::Yahoo::Asia(3pm)