📜  剪切最后一个字段分隔符 - Shell-Bash 代码示例

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

代码示例1
Use rev command altogether with cut command as follows:
echo "1 2 3 4 5" | rev | cut -d ' ' -f '2-' | rev
#rev reverses string, then you cut from 2th field to end and reverse back