Search Results

Search: Posts Made By: roderashe
11,960
Posted By roderashe
Thanks, blowtorch. That was very clean....
Thanks, blowtorch.

That was very clean. Maybe I was having trouble because of spaces in the filename? Thanks!
11,960
Posted By roderashe
no, this is just one line of many that I get. All...
no, this is just one line of many that I get. All say 'mv: rename 168650 (file path, etc)'. Thanks for your help.
11,960
Posted By roderashe
Okay. I ran the code: mv `find...
Okay. I ran the code:

mv `find /Volumes/FTP_drive/FTP/ftp_users/anonymous/ -mtime +30 -exec ls {} \;` /Volumes/FTP_drive/FTP/temp_save

It works but I get a lot of these types of errors:

mv:...
11,960
Posted By roderashe
Hi, gthokala. Here's the exact line I'm...
Hi, gthokala.

Here's the exact line I'm using:

(first I cd to the directory I want to 'find' in)

find . -mtime +21 -exec ls {} \; | xargs mv /Volumes/FTP_drive/FTP/temp_save

When I run...
11,960
Posted By roderashe
Do I need to use the quotes? I thought I didn't...
Do I need to use the quotes? I thought I didn't since I was piping to xargs? Thanks!

UPDATE: After putting the backquotes in here's the error I get:

-sh: ./.DS_Store: cannot execute binary file
11,960
Posted By roderashe
When I use this for my script I get a bunch of...
When I use this for my script I get a bunch of errors. I thought I could use Xargs but I get this:

usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 02:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy