-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommands
More file actions
56 lines (35 loc) · 1.35 KB
/
Copy pathcommands
File metadata and controls
56 lines (35 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Get hist:
---------
get_hist_nav_for_a_date.tcl yyyy-mm-dd
Convert hist to nav:
---------------------
convert_historical_to_daily_format.sh yyyy-mm-dd-hist
Collect names list from today file:
-----------------------------------
awk -f prepare_names_list.awk 2013-07-01-today > list
for i in $(ls 2013-0*today) ; do awk -f prepare_names_list.awk $i ; done | sort | uniq > master_list
cp master_list ../repository/repo
Building repository
-------------------
mv *nav /home/lakskuma/Lakshman/work/tries/daily-nav/repository/repo
./bundle_files.sh
Find missing files
-------------------
./list_missing_files.sh | grep not | awk ' {print $1}' > missing_files
collect history
---------------
keep list in pending_file and just download
download_files.sh <count>
get cagr between 2 dates for a fund
------------------------------------
./compare_2_dates.sh <yyyy-mm-dd> <yyyy-mm-dd>
What you should do when u have got a bunch of todays'
------------------------------------------------------
1. Get them into the downloads folder of the nav-repo
2. Convert the todays to nav
for i in $(ls *today) ; do echo $i ; ../../scripts/convert_today_to_daily_format.sh $i ; done
3. Bundle the files
mv *nav ..
../scripts/bundle_files.sh
4. check status by finding missing files
../scripts/list_missing_files.sh | grep not | awk ' {print $1}' > missing_files