Search/replace file names in Powershell

Posting a command I recently found that allows you find/replace file names in Powershell on Windows. <search> and <replace> both accept a regex or you can also add the -LiteralPath option to rename-item

get-childitem *.txt | foreach { rename-item $_ $_.Name.Replace("<search>", "<replace>") }

In a world where Denvercoder69 actually does come back and reply to that blog post.

Did you find this post useful? Show some love!
DISCUSSION (1)
get-childitem * | foreach { rename-item -LiteralPath $_ $_.Name.Replace("", "") }
Classic DEV Post from Sep 9

Small bits of web UX

I'm not sure how to call those. This good tone for web experience

READ POST
Follow @stereobooster to see more of their posts in your feed.
Meghan 🌺
21. Student. Dreamer. Doer. On a mission to change the world with code. she/her
More from @nektro
Safari is the New Internet Explorer
#javascript #safari #webdev #productivity
Trending on dev.to
Refactoring Legacy Monoliths - Part 3: Game Plan And Refactoring Tips
#devtips #refactoring #dotnet #legacy
Addiction and Coding
#addiction #coding #productivity #discuss
Using Print Statements Are A Handy Way to Debug and Explore Code
#beginners #learning #productivity #webdev
7 Ways Continuous Delivery Helps Build a Culture of Learning
#continuousdelivery #devops #productivity #agile
Golang, it was love at first sight.
#webdev #go #productivity #learning
How to ask good questions as a developer
#beginners #devtips #learning #webdev
Soft Skills: The software developer's life manual - Book review
#productivity #bookreview #learning #career
Saving time with a preset Tmux setup
#tmux #productivity #commandline #linux