Hello, I have hundreds of text files to be tested.They are generated by many commands. I should check whether a word in specific position is right, or whether a word in file A is equal to a word in file B. All the file are not the same. I decide to use shell to test every files, so I had to write hundreds of test shell scripts. My God!
Can anyone give me a handy way to do all the tests. Or is there any tool or language is for doing these tests ?
For example:
CLS_SBB => log_display
system operation number:19
No. Type Time Ele type Ele ID Event type Attribute
0 02 459 07 00 92 00 00 00 01
1 02 00 07 00 83 01 cb ce 08
2 02 00 07 00 83 01 cb ce 08
3 02 00 07 00 82 01 80 00 00
CLS_SBB => log_show
------------------------------------------------ Local Event Log------------------------------------------------------------------------
No. Time Element Name Event Type Event Dir Event Range Event Data Severity
0001 00:00:18:33 Leopard-H Canister A Log Repository Cleared N/A N/A N/A Info
0002 00:00:00:00 Leopard-H Canister A Firmware Configuration Invalid N/A N/A Warning
0003 00:00:00:00 Leopard-H Canister A Firmware Configuration Invalid N/A N/A Warning
0004 00:00:00:00 Leopard-H Canister A POST Error N/A N/A POST step ID 128 Warning
Compile rule
Row : No.
The corresponding value should be equal.e.g. 0=0001
Row : Time:
e.g. 459=18*60+33
Row : Ele Type
e.g. 07 should be Leopard-H Canister. . and other device id is other device.
....
I should do the work for many files, it's hard for me.
Thanks!