Should be as follows:
cp -r !(Default.png) /dest
If copying to a folder nested in the current folder (called example in the case below) you need to omit that directory also:
cp -r !(Default.png|example) /example
More Related Contents:
- How to use ‘cp’ command to exclude a specific directory?
- Linux: copy and create destination dir if it does not exist
- Using the “alternate screen” in a bash script
- Run text file as commands in Bash
- Prevent Gnome Terminal From Exiting After Execution [duplicate]
- Error “syntax error near unexpected token ‘(‘” in Bash script when selecting files
- Looping through the content of a file in Bash
- Inner join on two text files
- Setting an argument with bash [duplicate]
- How to ‘grep’ a continuous stream?
- How to make a program continue to run after log out from ssh? [duplicate]
- How to parse XML using shellscript? [duplicate]
- How do I use sed to change my configuration files, with flexible keys and values?
- How do I know the script file name in a Bash script?
- Appending a line to a file only if it does not already exist
- Why do you need to put #!/bin/bash at the beginning of a script file?
- How to open a new tab in GNOME Terminal from command line? [closed]
- Bash function to find newest file matching pattern
- How to loop over directories in Linux?
- Get program execution time in the shell
- ‘&&’ vs. ‘&’ with the ‘test’ command in Bash
- Linux bash: Multiple variable assignment
- How to sort a file in-place?
- What is the meaning of a double dollar sign in bash/Makefile?
- Is it OK to use the same input file as output of a piped command?
- Linux command to list all available commands and aliases
- Run cron job only if it isn’t already running
- Redirecting command output in docker
- When to wrap quotes around a shell variable?
- How to get file creation date/time in Bash/Debian?