Rename multiple files by replacing a particular pattern in the filenames using a shell script [duplicate]

An example to help you get off the ground. for f in *.jpg; do mv “$f” “$(echo “$f” | sed s/IMG/VACATION/)”; done In this example, I am assuming that all your image files contain the string IMG and you want to replace IMG with VACATION. The shell automatically evaluates *.jpg to all the matching files. … Read more

Looking for ALT+LeftArrowKey solution in zsh

Run cat then press keys to see the codes your shortcut send. (Press Ctrl+C to kill the cat when you’re done.) For me, (ubuntu, konsole, xterm) pressing Alt+← sends ^[[1;3D, so i would put in my .zshrc bindkey “^[[1;3C” forward-word bindkey “^[[1;3D” backward-word (Actually I prefer to use Ctrl + arrow to move word by … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)