Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

convert dash to underscore windows

Setlocal enabledelayedexpansion

Set "Pattern=-"
Set "Replace=_"

For %%a in (*) Do (
Set "File=%%~a"
Ren "%%a" "!File:%Pattern%=%Replace%!"
)
Comment

PREVIOUS NEXT
Code Example
Shell :: remove docker image 
Shell :: ubuntu install discord 
Shell :: bash string starts with 
Shell :: how to undo a modified file in git 
Shell :: add token to cli git 
Shell :: brew update 
Shell :: ngx-bootstrap npm 
Shell :: E: Unable to locate package mongodb-org 
Shell :: git default branch name config 
Shell :: git source autocomplete 
Shell :: foreach loop powershell 
Shell :: WSL 2 requires an update to its kernel component. 
Shell :: linux shred command 
Shell :: zathura show black screen 
Shell :: rename laravel project 
Shell :: check solidity version 
Shell :: delete cash on ubuntu 
Shell :: untar tar.gz 
Shell :: react-router-breadcrumbs-hoc@^3.2.3 yarn upgrade 
Shell :: telegram on archlinux 
Shell :: git status just shows directory and not files 
Shell :: disable pre commit hook 
Shell :: anbox manjaro 
Shell :: ubuntu keyboard repeat 
Shell :: count the number of unique elements in a column bash 
Shell :: kill all process ubuntu 
Shell :: raspberry pi stop an rc.local process 
Shell :: set git origin 
Shell :: linux substitute string 
Shell :: start hostednetwork 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =