remove space at end of each line file
Use either one of both next commands with sed 's/to_replace/replace/':
sed 's/ *$//' file
sed 's/[[:blank:]]*$//' file
remove space at end of each line file
Use either one of both next commands with sed 's/to_replace/replace/':
sed 's/ *$//' file
sed 's/[[:blank:]]*$//' file
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us