Bash Strip précédant l'espace blanc

# Basic syntax:
sed 's/^ *//g'

# Example usage:
echo '                    text' # Printing without sed command
-->                     text
echo '                    text' | sed 's/^ *//g' # Pipe to sed command
--> text

# Note, use the following to remove all whitespace from the end of every line
sed 's/ *$//g'
Charles-Alexandre Roy