Find Jobs
Hire Freelancers

Change to Shell Script to execute PERL - repost

$10-30 USD

Terminado
Publicado hace más de 10 años

$10-30 USD

Pagado a la entrega
I need an edit made to the following shell script. ( cd $SRC find ./ -type f | while read FILE;do # Build Destination path DEST_FILE=$DST/${FILE#./} callLib [login to view URL] $FILE $DEST_FILE done ) if file is a javascript file (.js) then execute the PERL below and copy the resultant file instead of the orginal to the $DEST_FILE location perl -n -e 's/^\s*\/\/.*$//; s/^\s+//; print if /\S/'
ID del proyecto: 5237897

Información sobre el proyecto

5 propuestas
Proyecto remoto
Activo hace 10 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
Adjudicado a:
Avatar del usuario
Hi! I can do the project. I am well experienced in bash scripting.
$20 USD en 1 día
5,0 (2 comentarios)
3,2
3,2
5 freelancers están ofertando un promedio de $23 USD por este trabajo
Avatar del usuario
Should be do-able in a day. How are we going to determine if the file is a javascript file? Will a simple string extension check suffice? Or do we need to do content detection? Also, will there be any files without an extension? Are there filenames with spaces in them? Looking forward to hear from you.
$30 USD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
Hello, I think here you are finding all the files in the current directory and reading the content of the file. and you are getting the dstination file name with some junk spaces, that you want to remove using the perl statement. I can do this easily. If i am wrong please correct me and ping me to have a detailed discusssion about the requirement.
$20 USD en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED KINGDOM
United Kingdom
5,0
22
Miembro desde sept 10, 2003

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.