Shell/Bash: bash strip preceeding white space Example

By

Shell/Bash Example: This is the "bash strip preceeding white space" Example. compiled from many sources on the internet by SimpleTutorials.org

bash strip preceeding white space

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

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



* Summary: This "bash strip preceeding white space" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others