sed -n ‘start_line,stop_linep’ file > d_file
截取 指定的行间
sed -n '590658,655096p' logcat20220927053929.txt > high_memoery.log
获取前100行
head -n 100 logcat20220927053929.txt > high_memoery.log
截取后100行
tail -n 100 logcat20220927053929.txt > high_memoery.log