Sort and cleanup
This commit is contained in:
parent
d21044ef56
commit
294650f558
|
@ -4,9 +4,7 @@ ISIN Data from various public securities.
|
||||||
|
|
||||||
Source: [NSDL Website Detailed ISIN Search][nsdl].
|
Source: [NSDL Website Detailed ISIN Search][nsdl].
|
||||||
|
|
||||||
Automatically updated every Sunday using GitHub Actions.
|
Automatically updated every midnight (IST).
|
||||||
|
|
||||||
Currently tracked:
|
|
||||||
|
|
||||||
|File|Issuer|Tracked|
|
|File|Issuer|Tracked|
|
||||||
-----|-----|----|
|
-----|-----|----|
|
||||||
|
@ -26,6 +24,7 @@ You can run the `fetch.sh` script to generate the tracked the files from scratch
|
||||||
- https://stedolan.github.io/jq/
|
- https://stedolan.github.io/jq/
|
||||||
- https://www.gnu.org/software/parallel/
|
- https://www.gnu.org/software/parallel/
|
||||||
- https://curl.se/
|
- https://curl.se/
|
||||||
|
- https://www.gnu.org/software/sed/
|
||||||
|
|
||||||
# Structure
|
# Structure
|
||||||
|
|
||||||
|
|
3
fetch.sh
3
fetch.sh
|
@ -59,4 +59,7 @@ sem --wait
|
||||||
for i in E F 9; do
|
for i in E F 9; do
|
||||||
# Sort the file in place
|
# Sort the file in place
|
||||||
sort -o "IN$i.csv" "IN$i.csv"
|
sort -o "IN$i.csv" "IN$i.csv"
|
||||||
|
# Remove lines that don't start with the correct prefix
|
||||||
|
# This is to avoid ISINs like INF955L01IN9 showing up under IN9
|
||||||
|
sed -i '/^IN$i/!d' "IN$i.csv"
|
||||||
done
|
done
|
Loading…
Reference in New Issue