Connect to server via lftp and delete files older than one day

خرید بک لینک

0 down vote favorite I am using lftp to connect to a remote server as:

 lftp -u user,pass -e "echo 'hello' ;quit" host

What I want to do is to find and delete all the files in the root directory which are older than 1 day.

Initially I tried to find all files starting with a specific character as:

 find / -name 'A1*'

But I get an invalid command error. I checked the documentation of lftp and found out that the find command doesn't support searching with specific strings.

What would be the alteative?

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 256 تاريخ: سه شنبه 11 خرداد 1395 ساعت: 17:48

صفحه بندی