Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

TASK 2: Port a basic bash (.sh) script/application to the Python 3.x equivalent (No GUI required.) Convert the Bash Script shown to Python. #!/bin/bash read

TASK 2: Port a basic bash (.sh) script/application to the Python 3.x equivalent (No GUI required.) Convert the Bash Script shown to Python.

#!/bin/bash read -p 'What is your first name? ' STUDENTNAME curl -L https://api.agify.io/?name=$STUDENTNAME > my_agify_info.json LATEST_TF_URL=`curl -L https://releases.hashicorp.com/terraform/index.json | jq -r '.versions[].builds[].url' | egrep -v 'rc|beta' | egrep 'linux.*amd64' |tail -1` FILENAME=`echo $LATEST_TF_URL | awk -F/ '{print $6}'` if [[ ! -e $FILENAME ]]; then curl -#L $LATEST_TF_URL > $FILENAME fi clear echo "That's all folks!"

To demonstrate completion of this task, you should submit the following:

A screenshot showing the completed task and explanation of the screenshot (1-2 sentences)

Screenshot:

[place screenshot here]

Explanation: [write explanation here]

TASK 3:

Code an API client to get data from this REST API. https://ipwhois.io/documentation

Grab information from a public REST API and integrate the data as an enrichment to the ported python application.

To demonstrate completion of this task, you should submit the following:

A screenshot showing the completed task and explanation of the screenshot (1-2 sentences)

Screenshot:

[place screenshot here]

Explanation: [write explanation here]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

i need 2 7 7 .

Answered: 1 week ago