A bash script is a text file that contains a sequence of commands that you can run on your computer. Scripts can be used to automate tasks, or to create complex workflows.
CLICK HERE To solve more code-related solutions you face every day.

Printf adding extra space in shell script

There will always be space after the IP address, however, you can remove it like this : CURRENTOST=${CURRENTHOST::-1} Reference: CLICK HERE to find out more related problems solutions.

Scroll to Top