!7 p { S encoding = "ISO-8859-1"; File outDir = new File("/home/stefan/dev/woody/web-out"); for (File f : listFiles("/home/stefan/dev/woody/web")) pcall { if (!f.getName().endsWith(".php")) continue; print(f); S text = loadTextFileWithEncoding(f, encoding); L lines = lines(text); lines.add(0, [[]]); int idx = indexOfElementThatContains(lines, " BOTFELD "); if (idx < 0) { print("no botfeld"); continue; } assertTrue(cic(lines.get(idx+1), "" + "\n" + lines.get(j)); saveTextFileWithEncoding(new File(outDir, f.getName()), lines(lines), encoding); } }