📜  删除管道输出的第一个字 - Shell-Bash 代码示例

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

代码示例1
Just use cut command with a defined delimeter as a space ' ' and choose
to cut since second word match until end '-f2-' as for example:
cat file.txt | cut -d ' ' -f2-
If for example space delimiter ' ' is repeated in your line check how
many times, since matching word number must then be adapted. For example:
history | cut -d ' ' -f4-