Renaming/moving files with suffixes quickly:
cp /home/foo/realllylongname.cpp{,-old}
This expands to:
cp /home/foo/realllylongname.cpp /home/foo/realllylongname.cpp-old
Related Contents:
- How do I set a variable to the output of a command in Bash?
- How do I parse command line arguments in Bash?
- Why do you need ./ (dot-slash) before executable or script name to run it in bash?
- How to iterate over arguments in a Bash script
- Timeout a command in bash without unnecessary delay
- What is the purpose of “&&” in a shell command?
- Capture stdout and stderr into different variables
- Remove the last line from a file in Bash
- How to get Maven project version to the bash command line
- How to replace ${} placeholders in a text file?
- How to reload .bash_profile from the command line
- Why do I get “/bin/sh: Argument list too long” when passing quoted arguments?
- How to run some command before or after every Bash command entered from console?
- How can I get a recursive full-path listing, one line per file?
- How to use arguments from previous command?
- Multiplication on command line terminal
- How can I debug a Bash script? [closed]
- How can I pipe stderr, and not stdout?
- How to manually expand a special variable (ex: ~ tilde) in bash
- How to loop over files in directory and change path and add suffix to filename
- What is the benefit of using $() instead of backticks in shell scripts? [duplicate]
- Using variables inside a bash heredoc
- How do I prevent Conda from activating the base environment by default?
- Batch equivalent of Bash backticks
- Clone private git repo with dockerfile
- How to reload .bashrc settings without logging out and back in again?
- Exit Shell Script Based on Process Exit Code [duplicate]
- How do I pass in the asterisk character ‘*’ in bash as arguments to my C program?
- How to get the cursor position in bash?
- Use sed to replace all backslashes with forward slashes
- How to ignore xargs commands if stdin input is empty?
- How to pass in password to pg_dump?
- How to parse a CSV in a Bash script?
- Convert a string into an array with bash, honoring quotes for grouping [duplicate]
- Execute command after every command in bash
- How do I echo stars (*) when reading password with `read`?
- bash variable interpolation separate variables by a hyphen or underscore
- How do I escape slashes and double and single quotes in sed?
- Bash: Copy named files recursively, preserving folder structure
- Node.js Shell Script And Arguments
- What does ${ARGUMENT+x} mean in Bash? [duplicate]
- Printing asterisk (“*”) in bash shell
- How to effectively abort the execution of a Bash script from a function
- Bash script to receive and repass quoted parameters
- Is mixing getopts with positional parameters possible?
- sed multiline delete with pattern
- Error with sed unterminated s command in bash
- How to check the extension of a filename in a bash script?
- How can I upload (FTP) files to server in a Bash script?
- Run one command after another, even if I suspend the first one (Ctrl-z)