技术栈

Windows使用PowerShell批量修改文件后缀

喵个咪2024-09-22 14:23
powershell 复制代码
Get-ChildItem -Path "." -Recurse -Include "*.js" | ForEach-Object -Begin { $Counter = 1 } -Process { 
    $newName = $_.BaseName + ".ts"
    Rename-Item $_.FullName -NewName $newName
    $Counter++ 
}
上一篇:Spring Boot 入门:解锁 Spring 全家桶
下一篇:IOS 25 实现歌单详情(UITableView)列表 ②
相关推荐
切糕师学AI
7 小时前
curl 详细介绍
linux·shell·命令行
程序员一点
17 小时前
第18章:Shell 脚本编程基础
shell·openeuler
EverydayJoy^v^
15 天前
Linux Shell 高级编程(3)——awk
linux·运维·shell
dingdingfish
18 天前
Bash学习 - 第10章:Installing Bash
bash·make·shell·install·configure·5.3
dingdingfish
19 天前
Bash学习 - 第8章:Command Line Editing,第6-8节:Programmable Completion
bash·shell·completion·complete·compgen·compopt
白云偷星子
20 天前
RHCSA笔记3
shell
dingdingfish
21 天前
Bash学习 - 第7章:Job Control
bash·shell·wait·job
dingdingfish
21 天前
Bash学习 - 第8章:Command Line Editing,第1-2节:Intro & Readline Interaction
bash·shell·readline
only_Klein
21 天前
Shell 三剑客
shell·sed·grep·awk
dingdingfish
22 天前
Bash学习 - 第6章:Bash Features,第12节:Shell Compatibility Mode
bash·shell·compat·compatibility
热门推荐
01GitHub 镜像站点02OpenClaw 使用和管理 MCP 完全指南03本地部署 OpenClaw + DeepSeek-R1 完全指南04得物前端部门,没了05OpenClaw 连接飞书完整指南:插件安装、配置与踩坑记录06OpenClaw 飞书机器人不回复消息?3 小时踩坑总结07Window 10部署openclaw报错node.exe : npm error code 12808OpenClaw macOS 完整安装与本地模型配置教程(实战版)09npm-error code 128问题解决方法10OpenClaw 接入 QQ Bot 完整实践指南