相关疑难解决方法(0)

Linux命令(如cat)读取指定数量的字符

是否有类似catLinux 的命令可以从文件中返回指定数量的字符?

例如,我有一个文本文件,如:

Hello world
this is the second line
this is the third line
Run Code Online (Sandbox Code Playgroud)

我想要的东西会返回前5个字符,这将是"你好".

谢谢

linux command-line

109
推荐指数
3
解决办法
11万
查看次数

标签 统计

command-line ×1

linux ×1