If you use bash and have the extglob
shell option set (which is usually the case):
mv ~/Linux/Old/!(Tux.png) ~/Linux/New/
More Related Contents:
- Pattern match does not work in bash script
- How to change the output color of echo in Linux
- How do I prompt for Yes/No/Cancel input in a Linux shell script?
- 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 generate a core dump in Linux on a segmentation fault?
- 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?
- Why do you need to put #!/bin/bash at the beginning of a script file?
- How to set environment variable for everyone under my linux system?
- Command not found when using sudo
- How to loop over directories in Linux?
- ‘&&’ vs. ‘&’ with the ‘test’ command in Bash
- How to redirect stderr and stdout to different files in the same line in script?
- How to use ‘cp’ command to exclude a specific directory?
- 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?
- Run cron job only if it isn’t already running
- Redirecting command output in docker
- How to get file creation date/time in Bash/Debian?
- Disable and re-enable address space layout randomization only for myself
- pass stdout as file name for command line util?
- Code for parsing a key/value in in file from shell script
- What is the Linux equivalent to DOS pause?
- Recursively remove files
- How to check if sed has changed a file
- How to get the start time of a long-running Linux process?
- How to avoid race condition when using a lock-file to avoid two instances of a script running simultaneously?
- Executing a bash script upon file creation