Save and exit (CTRK + O and ENTER to save it). In nano editor, you do that by hitting CTRL + X, answering Y and hitting Enter when prompted.
==How to uninstall script??==
run the following command:
cd ~/x-c1
./uninstall_x-c1.sh
== How to read the fan RPM?==