#!/bin/csh
echo ""
echo "NHK BS1/BS2"
echo "分離するファイルを選択してください"
echo ""
ls -l *.ts | awk '{print}' | awk -F" " '{print $6,$7, $8,$5,$9}'
echo ""
echo "Input file-name"
set file = $<
echo "BS1 BS2どちらにしますか?"
echo "1 or 2"
set bs = $<
if ( $bs < = 1 ) then
goto case1
case1:
echo "BS2分離化開始"
tsselect $file "BS1-$file" 0x0000 0x0200 0x0210 0x02f0
else
goto case2
case2:
echo "BS1分離化開始"
echo ""
tsselect $file "BS2-$file" 0x0000 0x0100 0x0110 0x01f0
endif
echo ""
ls -l BS*-$file
echo ""
echo "Have a good time !"
Comments