Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to remove spaces at end of line linux

//Use this
sed -e '/[[:space:]]+$/s///' fileName.txt > FileName.temp 
//The temp file will allow you to check for spaces
 
PREVIOUS NEXT
Tagged: #remove #spaces #line #linux
ADD COMMENT
Topic
Name
7+3 =