Closed

Change to Shell Script to execute PERL

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 [url removed, login to view] $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/'

Skills: Shell Script

See more: perl script shell script, shell, find perl, shell script, shell script perl, script src, perl change file, execute, read file javascript, perl execute binary script, edit dst, perl edit, shell copy file, shell copy, perl javascript, perl print, change location, shell script file daily copy file, script copy perl, perl shell script read file, perl script find files copy directory, perl script copy file file, perl find file, perl find, javascript perl

About the Employer:
( 22 reviews ) United Kingdom

Project ID: #5236912

17 freelancers are bidding on average $310 for this job

chriskerpini

Hello, I'm an HP certified instructor in Greece, teaching (among other topics) shell scripting and perl, for more than 13 years, all levels. At the same time, I'm working as a freelancer developer. I can modify and More

$250 USD in 1 day
(12 Reviews)
3.9
TarasKuzyo

Hi! I am well experienced in bash scripting. I can do the project in a high quality way in a short time.

$250 USD in 1 day
(3 Reviews)
3.3
goarilla

This is way too expensive for a simple shell script edit, I would test for the js extension with grep, like this: if echo "$FILE" | grep -q '\.js$' ; then # do stuff to the js file tmpf="$(tempfile)" # c More

$250 USD in 1 day
(3 Reviews)
1.8
mailsmaity

I can solve this.. Ready to work on this.. will deliver project with in time. please assign to me. looking forward to work with you Discuss more on PM my skype id - [url removed, login to view]

$250 USD in 2 days
(1 Review)
0.9
srinichal

I am willing to discuss further details as I can make the necessary changes and deliver the script as well

$526 USD in 10 days
(2 Reviews)
1.0
sachitjani81

Have 3+ years experience working on Perl. Let me know ur exact budget. Can do this easily. ALso let me know if more requirements)

$250 USD in 1 day
(1 Review)
0.7
sumshu

Hi, I have 3+ years of experience in UNIX & shell scripting and can start working on the project asap. Thanks Sumeet Shukla

$250 USD in 1 day
(0 Reviews)
0.0
ddalhill

Hello, PERL and BASH are my strengths and I can accomplish this task very quickly. I have written thousands and thousands of lines of code both Perl and BASH. Regular Expressions are no issue for me either. My c More

$555 USD in 10 days
(0 Reviews)
0.0
nogoodnameleft

Hi crovane, first, $250 is way to much for what you want done here. Depending on how you format the code, this just needs the addition of 1-3 lines of code. But I'm not the one to complain if you want to throw money More

$250 USD in 1 day
(0 Reviews)
0.0
dadarmand

Hello, I don't think that your project worth 250$-750$, It is extremely trivial, but in any case if you wish I could do that in a very short time, and I will agree for a lower price. I recommend you to change the pric More

$250 USD in 1 day
(0 Reviews)
0.0
rajeevkattepura

Hi, This can be done by checking the type of file, and performing the conditional execution. Please provide me the original file and I will send across the modified one. Thanks & Regards, Raqjeev

$277 USD in 1 day
(0 Reviews)
0.0
vikas1018

Hi Crovane, Greetings, I read your problem and I am confident that I can deliver you required scripts in a single [url removed, login to view] forward to work with you. Vikas

$250 USD in 1 day
(0 Reviews)
0.0
newsman001

This should not take long for me to do. If you need futher assistance, regarding BASH or PERL I can help. Let me know.

$333 USD in 10 days
(0 Reviews)
0.0
kkpa59

I understand that you want me to make changes on you shell script. I have hands on experience with UNIX including shell scripting, bash and Perl. I have created many scripts for different platforms, I plan to complete More

$555 USD in 2 days
(0 Reviews)
0.0
viplav4u1ly

I feel reading the requirement, it is not a complex requirement. I don't know why project budget is this much. so after i discuss with you. i can confirm anything.

$277 USD in 1 day
(0 Reviews)
0.0
angelomendonca

I am new on this site but am a Software Engineer having relevant experience in Perl and Shell scripting.

$250 USD in 2 days
(0 Reviews)
0.0
Sithsu

I've implemented many similar scripts in the past. Actually I can provide a script (with some improvements even) for $120.

$250 USD in 1 day
(0 Reviews)
0.0