Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

replace filename space with underscore bash

for file in *; do mv "$file" `echo $file | tr ' ' '_'` ; done
Comment

linux replace spaces with underscore from all files in directory

find . -type f -name "* *" -exec bash -c 'mv "$0" "${0// /_}"' {} ;
Comment

replace space with underscore in linux

for file in *; do mv "$file" $(echo $file | tr ' ' '_') ; done
Comment

replace space with underscore command line in file name

@echo off
Setlocal enabledelayedexpansion

Set "Pattern= "
Set "Replace=_"

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

Pause&Exit
Comment

PREVIOUS NEXT
Code Example
Shell :: get wifi password windows 
Shell :: android_home ubuntu 
Shell :: install firebase-tools globally yarn 
Shell :: debian install dig 
Shell :: uninstall lightdm 
Shell :: install pyzbar on linux 
Shell :: docker remove all containers 
Shell :: uncommit last commit 
Shell :: git change remote origin 
Shell :: restart network service kali 
Shell :: how to install npm in ubuntu 
Shell :: reset last commit without losing changes 
Shell :: upgrade storybook 
Shell :: git rm cached gitignore 
Shell :: increase nginx timeout 
Shell :: clean docker images and containers 
Shell :: computer running linux 
Shell :: git delete local branch no longer on remote 
Shell :: composer update composer 
Shell :: install networkx python 
Shell :: valgrind install ubuntu 
Shell :: upgrade pytorch version 
Shell :: could not resolve head to a revision brew 
Shell :: create venv in windows 
Shell :: install firewall-cmd centos 7 
Shell :: change git account terminal 
Shell :: ubuntu remove package and dependencies install deb 
Shell :: install jq on ubunut 
Shell :: install docker on debian 
Shell :: kill nohup process 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =