#!/bin/bash
cc2=`ls -l | awk '{print $0}' | wc -l`
cc3=`ls -l | nl -n ln`
echo "------------------------"
echo "$cc2"
echo "------------------------"
echo ""
echo "Start"
read START
echo "Stop"
read END
echo ""
#cat text.txt | head -終了行 | tail -`expr 終了行 - 開始行 + 1`
echo "$cc3" | head -$END | tail -`expr $END - $START + 1`
echo ""
echo "実行する行番号を指定"
read job1
echo ""
echo "------------------------"
echo "$cc3" | grep "^$job1 "
echo "------------------------"
job2=`echo "$cc3" | grep "^$job1 "`
echo ""
echo "$job2"
echo ""
Comments