Is there a cleaner way of getting the last N characters of every line?

后端 未结 4 1764
轮回少年
轮回少年 2020-12-30 08:27

To simplify the discussion, let N = 3.

My current approach to extracting the last three characters of every line in a file or stream is to use sed

4条回答
提交回复
热议问题