Skip to content

Instantly share code, notes, and snippets.

@sayeed205
Created May 7, 2025 07:57
Show Gist options
  • Select an option

  • Save sayeed205/d8f4f59287963a42e7c868d3952460b7 to your computer and use it in GitHub Desktop.

Select an option

Save sayeed205/d8f4f59287963a42e7c868d3952460b7 to your computer and use it in GitHub Desktop.
This script extracts mutual fund scheme names and their respective net asset values (NAVs) from the AMFI (Association of Mutual Funds in India) data file, available at https://www.amfiindia.com/spages/NAVAll.txt.
(echo "Scheme Name\tAsset Value" && curl -s https://www.amfiindia.com/spages/NAVAll.txt | \
grep -v '^$' | \
awk -F';' 'NR > 1 && NF > 4 {print $4 "\t" $5}') > scheme_data.tsv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment