I have some files, consisting of end of day stock data in the following format :
Filename: NYSE_20120116.txt
<ticker>,<date>,<open>,<high>,<low>,<close>,<vol>
A,20120116,36.15,36.36,35.59,36.19,3327400
AA,20120116,10.73,10.78,10.53,10.64,20457600
How can I create files for every symbol? For example for the company A
Filename : A.txt
<ticker>,<date>,<open>,<high>,<low>,<close>,<vol>
A,20120116,36.15,36.36,35.59,36.19,3327400
A,20120117,39.76,40.39,39.7,39.99,4157900
(I don't want A.txt to contain the first line (the line with <ticker>) and the first column (the column with the symbol A))
I have tried to do it using a bash script, but the script is extremely slow.
Thank you.