How to copy the data of influxdb into a file (excel or csv)

Hi Guys,

I have started learning influxdb two months ago. I have stored data of a sensor into it.
Now i want to make the data analysis. Please suggest me an easy way to get the data into a file.

Thank you.