21 reputation
3
bio website
location
age
visits member for 2 years, 8 months
seen May 14 '12 at 18:55

Jul
31
awarded  Popular Question
Apr
20
comment Find and Move Files up One Level
Ah yes, I see the problem with this. So this will move the files relative to where I execute the command. What I'm actually trying to do is move the file up one level relative to the file. If that makes sense?
Apr
20
awarded  Student
Apr
20
awarded  Editor
Apr
20
revised Find and Move Files up One Level
added 114 characters in body
Apr
20
comment Find and Move Files up One Level
I tried an option from what you linked above, but I get a different error assuming a different OS (Solaris 10 in my case). find test -type f -exec mv {} .. \; output mv: cannot rename test/test2/test3/test.jar to ../crap.jar: Permission denied
Apr
20
comment Find and Move Files up One Level
Yeah I'm not to sure, just starting to learn scripting in the last week, could elucidate that if you have a second?
Apr
20
comment Find and Move Files up One Level
well I tried this find /path/to/dir -type f -exec sh -c 'mv -i "$1" "${1%/*}"' sh {} \; but end up with this sh: bad substituion
Apr
20
asked Find and Move Files up One Level