Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Why doesn't this work?

$
0
0
find . -name "05_scripts" -type d -exec mv -f {}/'*.aep\ Logs' {}/.LogFiles \;

Returns this failure:
mv: rename ./019_0120_WS_WH_gate_insideTEST/05_scripts/*.aep\ Logs to ./019_0120_WS_WH_gate_insideTEST/05_scripts/.LogFiles/*.aep\ Logs: No such file or directory

I don't know why it's trying to use the "/*.aep\ Logs" in the target directory.

If it key in the command generated manually it works fine.
mv -f ./019_0120_WS_WH_gate_insideTEST/05_scripts/*.aep\ Logs ./019_0120_WS_WH_gate_insideTEST/05_scripts/.LogFiles/
Works perfectly.

Moderator's Comments:
Please don't use these types of non detailed subject lines - Why doesn't this work? . This is strictly against forum rules and you will receive a reminder/warning next time. Please read the rules of the forums again.

Viewing all articles
Browse latest Browse all 16232

Trending Articles