【发布时间】:2010-11-03 18:11:46
【问题描述】:
我需要让 sed 替换很多文件中的一些 url。每个文件都有以下内容
http://www.expample.com/file.php?id=xxxxxxx
xxxxx 由随机数组成,每个文件中的随机深度如
file 1
_h**p://www.expample.com/file.php?id=xx
file 2
_h**p://www.expample.com/file.php?id=xxxxxxxx
等等。提前致谢。
【问题讨论】:
-
你想用什么替换它们?
-
你想替换什么,你希望替换文本是什么?
-
你真的应该考虑更仔细地写你的问题。我几乎听不懂你在说什么。
标签: random sed numbers replace sh