💻 Software
How can I use '{}' to redirect the output of a command run through find's -exec option?
Fresh7 days ago
Mar 15, 202620245 viewsConfidence Score0%
0%
Problem
I am trying to automate an command for a backup script, and I want to do something like this: This seems to work, in that it looks through each svn repository in , and runs on it. However, the second in the exec command doesn't get substituted for the name of the directory being processed. It basic…
Error Output
find /var/svn/* \( ! -name dir -prune \) -type d -exec svnadmin dump {} > {}.svn \;Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How can I use '{}' to redirect the output of a command run through find's -exec option?
Low Risk
You can do the redirection like this: and the correct substitution will be done.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix