> eps_year_xts["2020::"]
[,1]
2020-01-01 116.33
2020-04-01 99.23
2020-07-01 93.03
2020-10-01 87.16
2021-01-01 101.75
2021-04-01 119.53
2021-07-01 128.19
2021-10-01 135.75
[,1]
2020-01-01 116.33
2020-04-01 99.23
2020-07-01 93.03
2020-10-01 87.16
2021-01-01 101.75
2021-04-01 119.53
2021-07-01 128.19
2021-10-01 135.75
$ tac eps.txt | awk '{gsub("\\$","",$NF);print "eps_year_xts[\"2019::\"]["NR"] <- "$NF}'
eps_year_xts["2019::"][1] <- 134.39
eps_year_xts["2019::"][2] <- 135.27
eps_year_xts["2019::"][3] <- 132.90
eps_year_xts["2019::"][4] <- 139.47
eps_year_xts["2019::"][5] <- 116.33
eps_year_xts["2019::"][6] <- 99.23
eps_year_xts["2019::"][7] <- 96.47
eps_year_xts["2019::"][8] <- 92.18
eps_year_xts["2019::"][9] <- 106.60
eps_year_xts["2019::"][10] <- 125.68
eps_year_xts["2019::"][11] <- 132.68
eps_year_xts["2019::"][12] <- 140.24