All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
removeWhiteSpace.sh
Go to the documentation of this file.
1 #!/bin/bash
2 
3 
5 {
6  echo "USAGE: `basename ${0}` <file list>"
7 }
8 
10 
11 if [ -z "${file_list}" ]; then
12  usage
13  exit 1
14 fi
15 
16 for fl in ${file_list}; do
17  #echo "remove trailing whitespace from ${fl}"
18  #sed -i 's/[ \t]*$//g' ${fl}
19  sed -Ei'' -e 's&[[:space:]]+$&&' ${fl}
20 done
21 
22 exit 0
23 
process_name opflash particleana ie ie ie z
file_list
usage
Definition: doGit.sh:21
then shift fi
if &&[-z"$BASH_VERSION"] then echo Attempting to switch to bash bash shellSwitch exit fi &&["$1"= 'shellSwitch'] shift declare a IncludeDirectives for Dir in
do i e