如何在不打开文件的情况下查找和重命名excel文件的内容?

2024-09-28 23:50:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个excelsheet,其中第3行和第E3列包含以下信息:

row1     row2           row3
"H3"    "System Name" linuxtestserver

如何用脚本编辑excel工作表并用其他服务器名称替换linuxtestserver而不打开它

我试过sed命令,它似乎对excel文件有效

sed 's/linuxtestserver/susetestserver/g' test.xls

Tags: name服务器脚本信息编辑excelsystemsed