📄 pplain.test
字号:
#! /bin/sh# @(#)pplain.test 1.2 6/2/88 ESIESPSCOM=espscomexport ESPSCOMrm -f espscomcat > out.1.a <<ZAP1 2 3 4 5 0 9 8 7 6 ZAPcat > out.2.a <<ZAP461.94 500 461.94 353.553 191.342 -0.00011832 -191.342 -353.553 -461.94 -500 -461.94 -353.553 -191.342 0.00023664 191.342 353.554 461.94 500 461.94 353.553 191.341 -0.000354961 -191.342 -353.554 -461.94 -500 -461.94 -353.553 -191.341 0.000473281 191.342 353.554 461.94 500 461.94 353.553 191.341 -0.000591601 -191.342 -353.554 -461.94 -500 -461.94 -353.553 ZAPcat >out.3.a <<ZAP461.94 500 461.94 353.553 191.342 -0.00011832 -191.342 -353.553 -461.94 -500 -461.94 -353.553 -191.342 0.00023664 191.342 353.554 461.94 500 461.94 353.553 191.341 -0.000354961 -191.342 -353.554 -461.94 -500 -461.94 -353.553 -191.341 0.000473281 191.342 353.554 461.94 500 461.94 353.553 191.341 -0.000591601 -191.342 -353.554 -461.94 -500 -461.94 -353.553 -191.341 0.000709921 191.342 ZAPcat >com <<ZAPstring filename = "<stdin>";string prog = "pplain";int start = 1;int nan = 10;ZAPecho this should result in the pplain usage message and no input file msgpplainecho "1 2 3 4 5 0 9 8 7 6" | testsd -a- - | pplain - > out.1echo this diff should find no differencesdiff out.1 out.1.atestsd -p50 test.sd pplain -r4:47 > out.2echo this diff should find no differencesdiff out.2 out.2.applain -r4:500 > out.3echo this diff should find no differencesdiff out.3 out.3.aecho should complain about not being more than 1 elementpplain -e3 test.sdecho this should complain that its not a feature file.pplain -f foo test.sdrm a.feapplain -r1:100 test.sd | addfea -chi -ffield - a.feaecho this should complain that field foo is not in file a.feapplain -f foo test.sdecho this should workrm espscompplain -r1:100 -ffield a.fea >out.1pplain -r1:100 test.sd >out.2echo no difference expecteddiff out.1 out.2echo this should complain about only one element in fieldpplain -f"field[2]" a.fearm out.1 out.2 out.3 out.1.a out.2.a out.3.a espscom test.sd com a.fea
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -