Find Jobs
Hire Freelancers

Python or Bash script to create a new directory using MySQL record

$10-30 USD

Completed
Posted almost 7 years ago

$10-30 USD

Paid on delivery
I need a script called casegen. It can be written in either Bash or Python. It will take one operator on the command line, which will correspond to a field in a SQL database. I have attached the database schema with one sample record. $ casegen $cas The script should take $cas and do the following: use dispos_db select def_nam from filings where cas like '$cas%' If there are more than one matching records (there may be as many as two) present the user with a choice: $ casegen 1234567 Which person? [1] $def_nam [2] $def_nam Input: 1 Once the record is selected, process the name into two variables: firstname = right side of the comma, Title Case lastname = left side of the comma, Title Case then mkdir /path/defined/in/script/$lastname_$firstname then git clone git@[login to view URL]:frabyn/[login to view URL] /path/defined/in/script/$lastname_$firstname/ Then, in the file /path/defined/in/script/$lastname_$firstname/nodoc/data/[login to view URL] insert the following lines: \SetupPerson{D}{% appellant, secondparty, client, name={$firstname $lastname}, address={}, inmateid={$spn}, } So, for example, using the attached SQL record: working_directory = ~/active-matters/ $ casegen 2157883 mkdir ~/active-matters/Abac-Michicoj_Ovido/ git clone git@[login to view URL]:frabyn/[login to view URL] ~/active-matters/Abac-Michicoj_Ovido/ append to file ~/active-matters/Abac-Michicoj_Ovido/nodoc/data/[login to view URL] \SetupPerson{D}{% appellant, secondparty, client, name={Ovido Abac-Michicoj}, address={}, inmateid={02909890}, } I'll be online to help.
Project ID: 14553526

About the project

5 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
Awarded to:
User Avatar
I can setup this today for you, using shell script and dialog (if you like it). Relevant Skills and Experience I have more than 10 years in linux experience, and my last 3 years working with AWS and automation. Proposed Milestones $35 USD - Script delivery Will the script call mysql directly? Where the credentials will be stored?
$35 USD in 1 day
5.0 (1 review)
0.8
0.8
5 freelancers are bidding on average $42 USD for this job
User Avatar
Hello, I'd be glad to develop the python script for you. Looking forward to chat with you soon for more details. Best, Relevant Skills and Experience Python Proposed Milestones $66 USD - End milestone
$66 USD in 1 day
5.0 (71 reviews)
6.1
6.1
User Avatar
What database it use - Mysql? I can make this with python. Relevant Skills and Experience python, linux Proposed Milestones $61 USD - milestone 1
$61 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Houston, United States
5.0
11
Payment method verified
Member since Feb 14, 2013

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) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
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.