Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

remove spaces from file names bash

find . -name "* *" -type d | rename 's/ /_/g'    # do the directories first
find . -name "* *" -type f | rename 's/ /_/g'
Comment

ignore spaces in file names in bash shell script

for f in * *; do mv "$f" "${f// /_}"; done
Comment

PREVIOUS NEXT
Code Example
Shell :: unix set current time in file name 
Shell :: conda install numba 
Shell :: docker remove exited containers 
Shell :: linux list environment variables 
Shell :: cypress installation 
Shell :: zsh command not found nvm mac 
Shell :: gitlab reset password 
Shell :: host key verification failed 
Shell :: delete logs older than 7 days linux 
Shell :: linux sudo /opt/lampp/lampp start command not found 
Shell :: see journalctl running logs 
Shell :: how to install imagemagick in linux 
Shell :: how to install gnu lib tool 
Shell :: discord.py install 
Shell :: how to install nvm on linux terminal 
Shell :: install makecert windows 10 
Shell :: bash get username 
Shell :: change remote to use ssh git command 
Shell :: kubectl cp command from pod to local 
Shell :: yarn install netlify 
Shell :: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root? 
Shell :: git remove folder from cache 
Shell :: kill all process linux 
Shell :: install jwt express 
Shell :: loop over file bash 
Shell :: add to a github repo 
Shell :: conda correct install opencv 
Shell :: how to connect to heroku app using git remotely 
Shell :: installing preload in ubuntu 
Shell :: git push submodules all 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =