liabi4hao
liabi4hao
全部文章
分类
刷题笔记(2)
题解(10)
归档
标签
去牛客网
登录
/
注册
libai4hao的刷题笔记
刷题中ing
全部文章
(共2篇)
题解 | #打印文件的最后5行#
!/bin/bash tail -5 nowcoder.txt #或 tail -n 5 nowcoder.txt 看到题目要求,就知道,使用tail和head就可以了 tail和head常用语法 tail 文件名 # 默认显示文件后10行 tail -n 文件名 # 显示文件后n行head 文...
bash
面试刷题
2022-03-08
0
492
统计文件的行数
方法(1) wc -l 是用来查看文件的newline的数量的。 在linux系统中,newline字符就是 \n 字符。 $ wc -l ./nowcoder.txt 8 ./nowcoder.txt 输出中包含了文件名,因此再做一下处理: $ wc -l ./nowcoder.txt | ...
bash
题解
快速复习之使用
2020-11-21
143
6010