📌  相关文章
📜  bash 从每一行返回最后 n 个字符 - Shell-Bash 代码示例

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

代码示例1
# Basic syntax:
cat file.txt | rev | cut -c 1-3 | rev > output.txt
# Here we reverse each line, grab characters 1-3 (the last two 
#    characters of the original string), and then reverse the string again