Я делаю этого достаточно часто и так написал этот скрипт. Мне не нужно найти номера строк, скрипт делает все это.
#!/bin/bash
# $1: start time
# $2: end time
# $3: log file to read
# $4: output file
# i.e. log_slice.sh 18:33 19:40 /var/log/my.log /var/log/myslice.log
if [[ $# != 4 ]] ; then
echo 'usage: log_slice.sh <start time> <end time> <log file> <output file>'
echo
exit;
fi
if [ ! -f $3 ] ; then
echo "'$3' doesn't seem to exit."
echo 'exiting.'
exit;
fi
sline=$(grep -n " ${1}" $3|head -1|cut -d: -f1) #what line number is first occurrance of start time
eline=$(grep -n " ${2}" $3|head -1|cut -d: -f1) #what line number is first occurrance of end time
linediff="$((eline-sline))"
tail -n+${sline} $3|head -n$linediff > $4
В Firefox, Tools> Flashgot> Дополнительные параметры> Общее> Общее> Первое поле;
Измените его обратно в Wget.