对于 myfolder 中可用的一组 java 文件,我想替换:
ColorTee.testh = new TestH(A,"JavaFileName".class);
ColorTee.testh.addFile(C,"/folder1/folder2/folder3/file","myFile")
和:
ColorTee.testh = new TestH(Z,A,"JavaFileName".class);
ColorTee.testh.addFile(C,/folder3/file,"myfile");
知道“myfile”与一个文件不同
并import com.soft.test.event;
在之后添加
import java.io.File;
并尝试:
#!/bin/bash
for file in *.java
do
echo
sed -i -e "" "$file"
done