10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-09-27 12:00:56 +02:00
quantum_package/scripts/remove_trailing_spaces

17 lines
209 B
Plaintext
Raw Normal View History

2019-01-14 15:20:51 +01:00
#!/bin/bash
#
# Removes white spaces at the end of lines.
#
# Usage:
#
# remove_trailing_spaces FILE
#
if [[ -n $1 ]] ; then
exec sed --in-place 's| *$||' $1
else
2019-01-14 19:52:41 +01:00
>&2 echo "Usage: $0 FILE"
2019-01-14 15:20:51 +01:00
exit 1
fi