batch-file - 如何在命令提示符下修剪字符串?
问题描述
我在一个目录中有很多快捷方式 url。
C:\Users\Owner\Desktop\ReadItLaters>dir *.url /b
aaa.url
bbb.url
ccc.url
...
zzz.url
我想拿起那些网址。所以我写了这样的命令。
for %i in (*.url) do @type "%i" | find "URL="
像这样输出。
URL=https://www.example.com/aaa.html
URL=https://www.example.com/bbb.html
URL=https://www.example.com/ccc.html
...
URL=https://www.example.com/zzz.html
味道不错。但我想获取没有“URL =”的 url 字符串。
我希望这样输出。
https://www.example.com/aaa.html
https://www.example.com/bbb.html
https://www.example.com/ccc.html
...
https://www.example.com/zzz.html
如何将“URL =”替换为空?
解决方案
推荐阅读
- firebase - 在signInWithCredential之后颤动firebase登录不重定向
- solr - 具有短语匹配的 Solr 布尔查询
- angular - Angular ng-template 用作语法
- c++ - 设置一个成员 GlobalCEFApp->OnWebKitInitialized 和函数地址 C++ Builder
- python - Python - 将重命名文件的输出存储到变量中
- json - Arduino JSON 包 - 格式化传感器值
- java - 找不到符号:方法 setBufferFetchSizeHint(java.lang.Integer) 和方法 :setDistinct(boolean)
- awk - 从日志文件中提取两个字符串之间的行,中间有第三个字符串
- javascript - 在跨度上为 mousedown 触发的默认事件是什么?
- rust - 具有引用和引用返回的结构:由于需求冲突,无法推断出 autoref 的适当生命周期