我有很多文件,我已将所有文件名保存到filelists.txt. 这是一个示例文件:
cpu_H1_M1_S1.out
cpu_H1_M1_S2.out
cpu_H2_M1_S1.out
cpu_H2_M1_S2.out
当程序在文件名中检测到_H,_M时。_S我需要输出之后出现的数字。例如:
_H _M _S
1 1 1
1 1 2
2 1 1
2 1 2
谢谢你。