Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

remove last space from line

Use either one of both next commands with sed 's/to_replace/replace/':
sed 's/ *$//' file
sed 's/[[:blank:]]*$//' file
Comment

PREVIOUS NEXT
Code Example
Shell :: bash grep find lines that start with word 
Shell :: how to determine the file type in ubuntu 
Shell :: keep the container running and not exit directly 
Shell :: minikube without sudo 
Shell :: start ssh macos 
Shell :: cordova run device 
Shell :: install bootstrap 4 npm 
Shell :: delete all local images docker 
Shell :: install next js 
Shell :: check user terminal 
Shell :: task manager linux 
Shell :: how to install fairseq 
Shell :: change default kube editor 
Shell :: docker compose up specific yml 
Shell :: awk if else 
Shell :: move from commit to stage 
Shell :: gzip version check 
Shell :: flutter web setup 
Shell :: how to use dotenv in javascript 
Shell :: upgrade capacitor 
Shell :: nuxt .env file not load 
Shell :: install vpn client for ubuntu 20.04 gui 
Shell :: git always commit with gpg 
Shell :: cim specific file drush 
Shell :: httpd service centos 7 and centos 8 
Shell :: heroku rebuild without commit 
Shell :: What command do you use to pull any changes from the master repository into your local repository? 
Shell :: Install libqt4 ib ubuntu 
Shell :: remove cache package arch 
Shell :: ansible copy 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =