We use the -n flag which instructs echo not to output the trailing newline.
echo -n ${percentage}
Creating an MD5 hash of a string in bash
Make sure that you are not including the new line character (\n) as well in your string, there are cases where it might be included without you explicitly writing it. For example if you use the output of an echo command in bash, it will automatically add a new line…
In "Bash"

Script to clone all git repositories from all projects of a privately hosted Bitbucket server
The following script can download all git repositories from all of the projects that you have access to on a privately hosted Bitbucket server. The execution work-flow of this script is as follows: It will ask for your username (the one you use to login on the Bitbucket server) Then…
In "Bash"
Bash: Determinate state of variable
A variable in bash (and any POSIX-compatible shell) will be in one of the three following states: unset set but empty set and not empty Variables in bash do not have data types. A variable can contain a number, a character, a string of characters or the empty string. Assigning…
In "Bash"
This post is also available in: Greek