Source file clean-up from bash

Convert line ending from Windows to Linux

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.
Remove trailing empty space:
sed -i 's/\s*$//g' ./drivers/input/keyboard/qx1000.c
 
Last edited:
Back
Top