A merry & shrewd investing community |
Best Of MI |
| Unthreaded | Threaded | Whole Thread (12) | Prev | Next |
curl -sL "St. Louis Fed (FRED): Table Data - Industrial Production: Total Index | FRED" >z1(Although I now see that there is a potential race condition on the file ind_db.txt. Not safe to read and write the same file in a pipe.)
sed -n '/^[12][0-9][0-9][0-9]-/p' z1 | awk ' $1 >= "1950" {print $0}' | sort -r -k1,1 -u - ind_db.txt | tac >ind_db.txt
| Unthreaded | Threaded | Whole Thread (12) | Prev | Next |
Best Of MI | Best Of | Favourites & Replies | All Boards | Followed Shrewds | Open Questions | Moving a community