mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-11-04 12:33:38 +01:00
17 lines
209 B
Plaintext
17 lines
209 B
Plaintext
|
#!/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
|
||
|
>&2 echo "Usage: $0 FILE"
|
||
|
exit 1
|
||
|
fi
|
||
|
|