Commit d3a2cc07 authored by Vishwesh Patel's avatar Vishwesh Patel
Browse files

added year/month

parent 31efe08b
This diff is collapsed.
......@@ -3,8 +3,8 @@ dir=./csv
# use gnu awk to modify each csv
# IPODATAFULL
# symbol(1), day(8), daysBetterThanSP(2), daysGreen(3) marketMonthTrend(1648), market3MonthTrend(1649), market6MonthTrend(1650), marketYearTrend(1651), usaCompany(1653)
gawk -vFPAT='[^,]*|"[^"]*"' '{print $1 "," $8 "," $3 "," $2 "," $1648 "," $1649 "," $1650 "," $1651 "," $1653}' $dir/Original/IPODataFull.csv> $dir/Processed/IPODataFull_processed_G41.csv
# symbol(1), year(6), month(7), day(8), daysBetterThanSP(2), daysGreen(3) marketMonthTrend(1648), market3MonthTrend(1649), market6MonthTrend(1650), marketYearTrend(1651), usaCompany(1653)
gawk -vFPAT='[^,]*|"[^"]*"' '{print $1 "," $6 "," $7 "," $8 "," $3 "," $2 "," $1648 "," $1649 "," $1650 "," $1651 "," $1653}' $dir/Original/IPODataFull.csv> $dir/Processed/IPODataFull_processed_G41.csv
# financial data
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment