Hi,
i "tried" to sort data by date. So far, i used sed to take the data from the last and the actual month. Now, after changing the year it is not working properly.
i use:
GNU bash, version 4.2.45(1)-release (x86_64-suse-linux-gnu)
sed -n '/[0-3][0-9]\/['$y']/p' $Home/../scripte/pd_0.txt
y is a variable, build bei the shell-command y=`date +%y`
### data-format in pd_0.txt
2985,12/31/13,23:30,92637,9135,10018,9758,8504,6555,4573,2834,...
2986,12/31/13,23:40,97195,9281,10080,9868,8752,7091,4792,2951,...
2987,12/31/13,23:50,95258,9453,10164,10154,9285,7146,4919,2982...
2988,01/01/14,00:00,100358,9745,10622,10376,9291,7475,5222,3395,...
2989,01/01/14,00:10,128834,11704,13456,14235,13857,12485,10119,...
2990,01/01/14,00:20,165685,13613,16164,17818,18713,18242,15764,....
after all i'am very confused about. espacially why it works properly last year.
what i want to filter, ist the data from the last two month - e.g. from today, the data from Dec 2013 and the Data from Jan 2014.
Can someone help me please.
Thanks in advance,
IMPe