- 使用sed命令去掉第一個字符前的所有空格
cat filename|sed -e 's/^[ ]*//g'
- 保留除第一列外的所有列
less -S filename|awk '{$1="";print $0}'
- 使用cut命令獲取第一列外的所有列
cut -d ' ' -f 2- filename
cat filename|sed -e 's/^[ ]*//g'
less -S filename|awk '{$1="";print $0}'
cut -d ' ' -f 2- filename