Convert line ending from Windows to Linux
sed -i 's/\r//g' ./drivers/input/keyboard/qx1000.c
Remove trailing empty spaces
This will also convert you line endings from Windows to Linux.
sed -i 's/\s*$//g' ./drivers/input/keyboard/qx1000.c
On that page you find some tips on how to do things from the command line on Linux.
I'm no Linux crack, so I won't be able to tell you how many variants there are of Shell languages out there. In fact I don't even know what version of Shell I've been using myself.
I had to change...