Find Jobs
Hire Freelancers

Write a bash script

$250-750 USD

Closed
Posted about 7 years ago

$250-750 USD

Paid on delivery
I would like a script written that can iterate over a list consisting of entries like this.. un1Z1269E9909 rb1Z129098515 : un1B10EEE7667 rb1B109863068 : un1LL38959888 rb1EE12059208 : un1Z1H26969681 mb1H69267119H mb1H6968H626H : un1Z1426969R8G mb1H69267119H mb1H696BH626H : and transform the strings between the delimiter ‘:’ placing them into groups on individual lines, likes so; un1Z1269E9909, rb1Z12909BS15, NULL, NULL, NULL,NULL un1B10EEE7667, rb1B10986B068,NULL, NULL, NULL,NULL un1Z1H2696968, NULL, NULL, NULL, mb1H69267119H, mb1H6968H626H Each line is to have 6 entries. Every line’s first entry/string will always start with the letter u. The next entry/string on the line will start with either rb or mb. From there the script has to loop over the transformed lines placing each entry in to a variable. then into a INSERT statement. echo "INSERT into balcony (prop1, prop2, prop3, prop4, prop5, prop6) VALUES (${SORTEDLIST[0]},${SORTEDLIST[1]},${SORTEDLIST[2]},${SORTEDLIST[3]},${SORTEDLIST[4]},${SORTEDLIST[5]}); Logic must place ‘NULL’ for some entries and the entries beginning with ‘mb’ will always populate the columns on the right.
Project ID: 13596467

About the project

32 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
32 freelancers are bidding on average $311 USD for this job
User Avatar
Bid Summmary I'm very strong in BASH scripting, I can help you parse the input correctly, write output as your request and handle errors very carefully. Please visit my profile and consider me for this project. Relevant Experience Deploying VPN server using BASH script: https://www.freelancer.com/projects/12985931.html
$250 USD in 1 day
5.0 (63 reviews)
6.6
6.6
User Avatar
Dear client, how are you? I am a C/C++ programmer and mathematician. Please check my "Profile & Work List" and tell me details if my skill is in your concern. Looking forward to your response. Thanks.
$300 USD in 3 days
5.0 (9 reviews)
5.4
5.4
User Avatar
Your project budget is too high for such task! I can create such script (which will output SQL file) in less than a day for just $70. Thanks. Roman
$250 USD in 1 day
4.9 (58 reviews)
5.7
5.7
User Avatar
Bid Summmary Had 5+ years of experience in linux and AWS Relevant Experience Amazon Web Services: Lambda, API Gateway, EC2, Load Balancers, RDS, Elastic Beanstalk, Elastic File System, IAM, VPC, Security Groups, Cloud Formation,, S3, CLoudFront, Redshift, Route 53, Cloud Watch, Kinesis, SNS, SQS and etc. Advertising Technologies: Facebook Graph API's, FB Website Custom Audience, FB Dynamic Product Ads, Real Time Bidding, Retargeting Ads. Programming Languages: C, C++, Java, Go Big Data Technologies: Kafka, Flume, Pig, Memsql, Aerospike, Redis, MemCache and etc. Miscellaneous: Algorithms, Data Structures, Distributed Systems, Operating Systems Databases: Oracle, MySQL, Operating Systems: Windows, Linux, Ubuntu and etc. Web Technologies: HTML, PHP Code Deployments: Puppet, Docker Monitoring: Nagios, Ganglia:
$250 USD in 0 day
4.9 (18 reviews)
5.0
5.0
User Avatar
Hello, I have extensive experience scripting in Bash as well as experience with MySQL. Please let me know your timeline and any other relevant details. Regards, Erik
$250 USD in 2 days
5.0 (7 reviews)
3.4
3.4
User Avatar
I am able to write intermediate level shell scripts, but this problem might be easier to solve in Python. Please share a few sample files which are covering all scenarios so that I can verify if Python would be suitable. Also, you have not specified the logic for remaining fields, please explain about them. Finally, would it be likely that the field orders are jumbled and the script would have to take care of it?
$277 USD in 10 days
4.8 (7 reviews)
3.5
3.5
User Avatar
Hi. I can do such script for you. I'm linux administrator and using scripts for text processing often. Do you need bash script or other languages are suitable too?
$250 USD in 7 days
5.0 (6 reviews)
3.0
3.0
User Avatar
Hi, I can help develop the required script. however I would require following clarifications - how the input would be made available? text file? - how big is the input file expected to be? - is the output expected to be just SQL insert string? or is it expected to be executed against database? - are you particular that this should only be bash script? or open for other scripts - need clarification related to logic described - you have mentioned 'The next entry/string on the line will start with either rb or mb' but last sample given is 'un1Z1H2696968, NULL, NULL, NULL, mb1H69267119H, mb1H6968H626H' - is rule for rb and mb placement in order are different or same regards Babu
$250 USD in 5 days
5.0 (1 review)
2.9
2.9
User Avatar
Hi, Will do it for less than 250$ I am a python developer with 3 years of experience. I am new to this freelance platform and hence looking to work on low price for enhancing my ratings. This requirement of yours can easily be completed using python libraries, will also write a README file to explain how to execute. Feel free to message :) Cheers!
$250 USD in 0 day
5.0 (3 reviews)
2.6
2.6
User Avatar
Hi, I've understood your requirements clearly and I can deliver you the script as per the requirements in a day. Hope to hear from you soon. :)
$255 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$250 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
i will split the data based on : then i will iterate through each list that has been created to find the value starting with 'u%' then looking at next value if it starts with 'rb%' if not i will place the value as null rest if there are any other value e.g. starting with 'mb%' will be put as other values from the end. concatenating each string of output to make SQL statement for INSERT.
$278 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$250 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$555 USD in 10 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I have written many programs in various scripting and programming languages that deal with parsing sentences and formatting them into an order. I've good experience in using regular expressions for doing pattern matching. In programs like these, challenge is more with dealing with the exceptional cases where there is a chance of NULL entries between delimiters or more than 6 entries in some cases. I have taken 2 days to dedicate one complete day for testing. I will do thorough testing and make sure all these cases are taken care according to your requirement. As for the normal functionality, I assure you that it will work perfectly. You can contact me via email to discuss further details. Looking forward to working with you. Thank you!
$250 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I am a highly motivated junior software developer. I have been programming in python and c/c++ for 2 years now. I have 5 years of experience in the Linux environment, programming shell scripts and working with automation.
$555 USD in 10 days
0.0 (0 reviews)
0.0
0.0
User Avatar
hello, i have many years exp worked in linux scripts. feel free to inbox me. thanks for reading. jun
$261 USD in 4 days
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$250 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I have 10.5 years of experience working on shell scripts. I have written shell scripts to modify data in the files with different delimiters,,create different files with different number of columns, etc. I have expertise in using sed, awk commands on file data. and worked on similar kind of projects.
$555 USD in 10 days
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$277 USD in 2 days
0.0 (1 review)
0.0
0.0

About the client

Flag of INDIA
India
0.0
0
Member since Apr 2, 2017

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.