Find Jobs
Hire Freelancers

Delete files and folders with perl command

$10-30 USD

Cerrado
Publicado hace más de 8 años

$10-30 USD

Pagado a la entrega
Got a few servers where I need to delete millions of files and folders all the time. So I am looking for a script I can run where I add the "domains" I want to be deleted. (script should include the path), I did use the command rm -f but its too slow. So I did figure out that perl -e 'for(<*>){((stat)[9]<(unlink))}' is 15 times faster. But it only delete the files in a folder. But I got alot of subfolders. So a fast solution where I just add the domains I want deleted in a webbased interface. The server run centos 6.x. And it should not be rm -rf. But a solution that use ex. perl will be alot faster.
ID del proyecto: 8734750

Información sobre el proyecto

11 propuestas
Proyecto remoto
Activo hace 8 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
11 freelancers están ofertando un promedio de $38 USD por este trabajo
Avatar del usuario
Hello! With 98% to 99% completion rate, 850+ successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 average rating, can be verified on my profile page https://www.freelancer.com/u/rajeshsonisl.html !!)... you can never go wrong choosing me :) I am available to get started on your project right away. I look forward to your reply. Thanks. Kind Regards, Rajesh Soni
$94 USD en 1 día
4,9 (1037 comentarios)
8,9
8,9
Avatar del usuario
Hello, I am the premier Perl scripting expert on these freelancing sites. I will create a Perl script to process a file hierarchy to remove all files and directories below a given directory. I will place the subroutine within a Perl module (.pm file) to be called from a Perl script (.pl file) and Perl/CGI script (.cgi file) that I shall provide. A milestone payment for the full budget for this project must be deposited with this site before your offer can be accepted. Alan Idler Chief Software Architect Idleswell Software Creations
$72 USD en 3 días
4,9 (207 comentarios)
6,3
6,3
Avatar del usuario
Hello, I have more than 5 yers of linux experience and I can find you easily a solution, Thank you, Adrian
$15 USD en 3 días
5,0 (1 comentario)
1,3
1,3
Avatar del usuario
See rmtree function of the File::Path module. ********************************************************************************
$30 USD en 3 días
4,0 (2 comentarios)
1,2
1,2
Avatar del usuario
A proposal has not yet been provided
$25 USD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
Sir, the Perl one-liner you mention is just a cargo-cult solution that roams around the net. The stat[9] command is useless and so is the boolean comparison operator that immediately follows. As you correctly point out, this one-liner, minus the cargo-cult part, deletes all the files in a directory quite fast, but doesn't go into the tree. To achieve deltree functionality, we would need to create a subroutine that deletes all the files, calls itself recursively upon each of the subdirectories (if present) and then deletes the subdirectory. It can be done, but i'm not sure how it would perform in case the directory tree goes very, very deep and with a lot of branches. I hope it's not the case. On a side note, it's funny how many of the bidders don't even list "Perl" among their skills.
$50 USD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
I have worked for 2 years in perl and knows many features. I used to to file delete and folder delete based on string and file name
$25 USD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
My purpose is delete the content from the directory recursively, files and subdirectories. The script accept as parameter the name of the directory and delete all the content
$20 USD en 0 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de DENMARK
Aalborg, Denmark
5,0
6
Forma de pago verificada
Miembro desde feb 26, 2006

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.