Linux 查看文件中指定行数的内容

一、tail -n +/-数字 文件名html 二、head -n 数字 文件名shell 三、sed -n "开始行,结束行p" 文件名spa 【步骤一】cd 到要文件所在目录3d cd到要查看指定行数内容的文件所在目录,本文以SpecialVariable.sh文件为例,cd /home/test/shell/htm 【步骤二】tail -n -数字 文件名ci tail -n -数字 文件名
相关文章
相关标签/搜索