Find Jobs
Hire Freelancers

Change to Shell Script to execute PERL - repost

$10-30 USD

Selesai
Disiarkan lebih dari 10 tahun yang lalu

$10-30 USD

Dibayar semasa penghantaran
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 Projek: 5237897

Tentang projek

5 cadangan
Projek jarak jauh
Aktif 10 tahun yang lalu

Ingin menjana wang?

Faedah membida di Freelancer

Tetapkan bajet dan garis masa anda
Dapatkan bayaran untuk kerja anda
Tuliskan cadangan anda
Ianya percuma untuk mendaftar dan membida pekerjaan
Dianugerahkan kepada:
Avatar Pengguna
Hi! I can do the project. I am well experienced in bash scripting.
$20 USD dalam 1 hari
5.0 (2 ulasan)
3.2
3.2
5 pekerja bebas membida secara purata $23 USD untuk pekerjaan ini
Avatar Pengguna
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 dalam 1 hari
0.0 (0 ulasan)
0.0
0.0
Avatar Pengguna
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 dalam 1 hari
0.0 (0 ulasan)
0.0
0.0

Tentang klien

Bendera UNITED KINGDOM
United Kingdom
5.0
22
Ahli sejak Sep 10, 2003

Pengesahan Klien

Terima kasih! Kami telah menghantar pautan melalui e-mel kepada anda untuk menuntut kredit percuma anda.
Sesuatu telah berlaku semasa menghantar e-mel anda. Sila cuba lagi.
Pengguna Berdaftar Jumlah Pekerjaan Disiarkan
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuatkan pratonton
Kebenaran diberikan untuk Geolocation.
Sesi log masuk anda telah luput dan telah dilog keluar. Sila log masuk sekali lagi.