You are echo’ing your ‘mv’ command, not actually executing it. Change to:
find . -name '*-GHBAG-*' -exec bash -c 'mv $0 ${0/GHBAG/stream-agg}' {} \;
More Related Contents:
- sh: 1: Syntax error: "(" unexpected error
- How do I write a bash script to restart a process if it dies?
- How to compare two strings in dot separated version format in Bash?
- Use Expect in a Bash script to provide a password to an SSH command
- How do I write standard error to a file while using “tee” with a pipe?
- How to declare 2D array in bash
- What does $@ mean in a shell script?
- Raise error in a Bash script
- Separately redirecting and recombining stderr/stdout without losing ordering
- Print a file, skipping the first X lines, in Bash [duplicate]
- How can I get unique values from an array in Bash?
- Recursively counting files in a Linux directory
- Managing log files created by cron jobs
- How to run a shell script on a Unix console or Mac terminal?
- How to get the process ID to kill a nohup process?
- equivalent date from GNU to solaris
- Use sudo without password INSIDE a script
- How can I suppress error messages of a command?
- Shebang line limit in bash and linux kernel
- Bash prompt with the last exit code
- Round a divided number in Bash
- Bash: wait with timeout
- How do you search for files containing DOS line endings (CRLF) with grep on Linux?
- Randomly shuffling lines in Linux / Bash
- Replacing Control Character in sed
- How to show line number when executing bash script
- Run script with rc.local: script works, but not at boot
- Maximum number of Bash arguments != max num cp arguments?
- Write a bash shell script that consumes a constant amount of RAM for a user defined time [closed]
- Using “$RANDOM” to generate a random string in Bash