运维网's Archiver
论坛
›
Shell/Powershell
› linux shell 下下列出文件行号脚本
aa0660
发表于 2018-8-19 06:56:26
linux shell 下下列出文件行号脚本
# vi number_nu #!/bin/sh
function list_num ()
{
FILENAME=$1
if [ $# -ne 1 ];then
echo "USEAGE: list_num arg ,arg is a chanchu file name"
return 1
fi
LOOP=1
while read LINE
do
页:
[1]
查看完整版本:
linux shell 下下列出文件行号脚本