📜  bash 去除前面的空格 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:20.493000             🧑  作者: Mango

代码示例1
# Basic syntax:
sed 's/^ *//g'

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