rename -n 's/.{5}(.*)/$1/' *
The -n
is for simulating; remove it to get the actual result.
Related Contents:
- Use space as a delimiter with cut command
- How to split a string in shell and get the last field
- How to make the ‘cut’ command treat same sequental delimiters as one?
- How can I remove the extension of a filename in a shell script?
- Using cut command to remove multiple columns
- Parsing the first column of a csv file to a new file
- How can I check if a program exists from a Bash script?
- How to mount a host directory in a Docker container
- Convert absolute path into relative path given a current directory using Bash
- How can I repeat a character in Bash?
- How can I convert tabs to spaces in every file of a directory?
- Shell equality operators (=, ==, -eq)
- Random number from a range in a Bash Script
- Generating random number between 1 and 10 in Bash Shell Script [duplicate]
- How can I remove all text after a character in bash?
- How do I find the number of arguments passed to a Bash script?
- How do I execute a bash script in Terminal?
- Display current date and time without punctuation
- Using the && operator in an if statement
- Capture stdout and stderr into different variables
- recursively use scp but excluding some folders
- Capture stdout to a variable but still display it in the console
- Get current directory or folder name (without the full path)
- Count line lengths in file using command line tools
- How to wait for an open port with netcat?
- Bash script error: “function: not found”. Why would this appear?
- Run a script in the same directory as the current script
- How not to pass the locale through an ssh connection command
- Set a parent shell’s variable from a subshell
- Run a shell script and immediately background it, however keep the ability to inspect its output
- Hidden features of Bash
- How to re-authorize the OAuth Application ‘Git Credential Manager’
- Navigating to the earliest/latest command in history when you’re in the middle of your history
- How to quickly find all git repos under a directory
- How do I change my $PS1 on a Macbook for oh-my-zsh?
- Dockerfile CMD instruction will exit the container just after running it
- Need to assign the contents of a text file to a variable in a bash script
- How to store directory files listing into an array?
- bash shell nested for loop
- CURL escape single quote
- Cmder – ‘eval’ command is not recognized
- Bash read ignores leading spaces
- ‘which’ vs ‘command -v’ in Bash [duplicate]
- How to make bash script ask for a password? [closed]
- bash getopts with multiple and mandatory options
- How to unzip a piped zip file (from “wget -qO-“)?
- SPRINTF in shell scripting?
- zip error – Nothing to do
- Output specific line huge text file
- How to test that a variable starts with a string in bash?