📄 test.script
字号:
#!/bin/sh#@(#)test.script 3.5 6/13/91 ESIESPSCOM=./espscomexport ESPSCOMecho "Make a test sampled data file containing floats"echo "testsd -a- test.sd << EOD"testsd -a- test.sd << EOD1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 EODecho " "echo "Filter the test data"echo "cat test.sd | fft_filter -PPfft_filter - - | psps -H - > test"cat test.sd | fft_filter -PPfft_filter - - | psps -H - > testecho " "echo "Compare test with reference data:"echo "diff test ref"cat > ref << EOD 1: 1.0000 3.0000 6.0000 6.0000 6.0000 6: 6.0000 6.0000 6.0000 6.0000 6.0000 11: 6.0000 6.0000 6.0000 6.0000 6.0000 16: 6.0000 6.0000 6.0000 6.0000 6.0000EODecho " "diff test refecho "If all is correct, there should be no differences"echo " "#echo "Make a test sampled data file containing shorts"echo "testsd -t SHORT -a- test.sd << EOD"testsd -t SHORT -a- test.sd << EOD1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 EODecho " "echo "Filter the test data"echo "cat test.sd | fft_filter -PPfft_filter - - | psps -H - > test"cat test.sd | fft_filter -PPfft_filter - - | psps -H - > testecho " "echo "Compare test with reference data:"echo "diff test ref"cat > ref << EOD 1: 1 3 6 6 6 6 6 6 6 6 11: 6 6 6 6 6 6 6 6 6 6EODecho " "diff test refecho "If all is correct, there should be no differences"echo " "echo "Test using FEAFILT file: create filtfile"cat > numfile << EOD31 2 3EODatofilt -c" " numfile filtfileaddgen -g samp_freq -tDOUBLE -v 8000.0 filtfileecho "cat test.sd | fft_filter -Ffiltfile - - | psps -H - > test"cat test.sd | fft_filter -Ffiltfile - - | psps -H - > testecho " "diff test refecho "If all is correct, there should be no differences"echo " "rm test ref test.sd espscom filtfile numfile
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -