Simple Bash Script (Ubuntu) Needed -- 2

$ 10.00 — 30.00 USD
Look to create some informational Bash Scripting information with screenshots included.
The instructions are:
INSTRUCTIONS

1.
Write a script to check command arguments (3 arguments maximum).
Display the argument one by one.
If there is no argument provided, remind users about the mistake.

Provide a screenshot of your script and example run (#4-0a)

Is there an easy way to use a loop to get all arguments?


2.
Practice a simple command line calculator.
See the sample output on the right.

Use the read command twice to prompt users to enter two integer numbers.
Save them to two variables.

Display the sum, difference, and product of these two numbers. - Hint: use
$ Write a script to do a little file count report for a given directory, as shown in the following figure.

Provide a screenshot of your script and example run (#4-0b)

3.
Write a script to display numbers from 1 to n, where n is an integer provided by users (if not, default to 10).
Hint: use “read” command to accept user input.

Provide a screenshot of your script and example run (#4-0c)
4.
Create x empty files in a given directory (x is a number), following a naming format like this: myfile1, myfile2, etc.
Ask the user to enter the first part file name and the number of files he/she wants to create.
Hint: you may use the “touch” command to quickly create empty files.
Take two screenshots:
a) Display the source code in an editor (#4-1)
b) Execute your script in the terminal, and display the command and the result (#4-2)

5.
Write a script to create the following directory structure in a directory of user’s choice.
The user can supply the directory of choice as an argument; if missing, prompt the user to enter one from the command line.
Take two screenshots:
a) Display the source code in an editor (#4-3)
b) Execute your script in the terminal, and display the command and the result (#4-4)

6.
Edit the script in the prior question.
a) Check if the user input (an existing directory) is valid; if not, ask the user to enter it again.
b) If the “Data” directory exists, then prompt for user actions: cancel or overwrite.
Hint: use directory operators; refer to lecture notes slide #8 and #10.
Command line script on one line:

read -p "Enter a number: " max; sum=0; for ((i=1; i<=$max; i++)); do let sum+=i; done; echo "The sum from 1 to $max is $sum"

Similar Freelance jobs:

Zamaso Inc
I need scripts from textnow or any wesbsite of sending free sms With this script i need to send bulk sms
Full Description of Zamaso inc
Linux Distro
Hi everyone! I'm looking for a embedded systems engineer someone with vast knowledge on C++, QT, Kirigami UI Framework, Maui Project Framework these frameworks and knowledge in this language would be of great help in my creation a device I'm engineering. Other important areas of expertise: KDE Plasma, Calamares Installer, Kubuntu Invite will need to sign NDA. Thank you!
Full Description of Linux Distro
Vpn App (v2ray+trojan+shadowsocksr) 5 O.s (ios+android+windows+mac+linux)
smooth and fast VPN using protocols: V2ray-trojan-ssr vpn app with my own Ui & a basic backend panel using php+mysql i need app for (ios + android + windows + mac + linux ) = minimum $1500 / maximum $5000 for whole project, official programing language only ! not flutter-xcode-react,js...! Microsoft studio = windows version Android studio = android version Swift = ios//mac version C ,c++ = linux version i provide: Ui + panel template + servers + openSource vpn…
Full Description of VPN APP (V2ray+trojan+shadowsocksR) 5 O.S (ios+android+windows+mac+linux)
A Secure Relay Mail Server Tasks -- 2
Hi i currently have a virtualmin mail server. but it is lacking security and monitoring. - enable secure mail relay. and improve mail relay security, it should block ips who are trying to use mail relay multiple times. - wordpress should be able to use the mail relay via smtp. - improve mail rating in mail tester: https://www.mail-tester.com/ - I am also getting an email from google saying there is an issue with damrc. https://support.google.com/a/answer/2466580 - i am not able…
Full Description of A secure relay Mail server tasks -- 2
Move Wordpress Website From One Host To Another
The task is to move one wordpress website from one host to another and make it perfectly work on the new host. I have access to both hosts. both via ftp and via controlpanel. Full access to Files and DB. Info: we could not get it to work on the new host - no DB found even though we configured it in the wp.config. So I am looking for someone who can fix this. Actually we moved it already to…
Full Description of Move Wordpress website from one host to another
Setup Postgresql Replication
We run a customer service environment where we use postgresql as db. We need help configuring master slave environment. Read more in attached specification. Give an estimate of costs and write down your qualifications. Thanks /Dan Erik Ollas (Sweden)
Full Description of Setup PostgreSQL replication
Bash Scripting: Website Scraping
Need to screen scrape a website using wget and curl and then manipulate/format some data in a useful way (such as a table) using tools like SED and AWK. Those are the only requirements
Full Description of Bash Scripting: Website Scraping
Linux Create Own Iso
Want to create own ISO which includes exiting debian linux and applications.
Full Description of Linux create own ISO
Websocket Secure Server
Hi. We need to setup a websocket proxy, on a Ubuntu 17 Linux server. Basically a wss://domain.com/ws/ link wich can handle request-response from client-side. Preferably the server-side script be in php, rather than javascript. NOTE: 1. you should be able to work via TeamViewer, Ammyy or similar. 2. minimize apache2 restarts and errors, knowing that the server is online
Full Description of websocket secure server
Ssh Bash Script To Create Xml File
I need somebody to develop a shell script in Bash to dynamically create an XML file via SSH on a Ubuntu Linux Server - XML file is pretty simple and maybe has 30 rows - XML file has three variables that need to be populated dynamically - I also need three input commands to collect the three variables (Numbers) upfront I need somebody who has done this before, knows SSH and Bash inside out and I can just take that…
Full Description of SSH Bash Script to create XML File
Ethical Hacking -- 2
Element 1: For the practical part of this assignment, you will have to build Virtual Machines (VM), an exemplar scenario is clarified below but you can choose a different setup: 1. A Server o You could use a Linux (e.g. CentOS, Ubuntu Server), or a Windows Server o Minimumconfigurationrequired ▪ Two services of your own choice (e.g. DHCP, FTP, SMTP, SNMP, Web etc) 2. A Client o Could be either Windows (Visa, 7, 8, 10 etc) or Linux (Fedora, Ubuntu…
Full Description of ethical hacking -- 2
Sql Server 2016 Migration To Oracle 19c Using Goldengate 19.1
My source database is SQL Server 2016 SP2 Standard Edition and my source database is Oracle 19c. I have successfully migrated from SQL Server to SQL Server using GoldenGate 19.1, but the migration from SQL Server to Oracle is just frustrating me and I need this to be implemented using the Initial Load process and then the use of LSN from SQL Server. The Oracle schema has been tested to work fine for the data migration from SQL server to…
Full Description of SQL Server 2016 migration to Oracle 19c using…
Issue When Import Xls Sheet To Odoo 14
Dears i am facing an issue when import xls sheet to odoo Enterprise Edition 14 "" Import preview failed due to: Unable to load "xlsx" file: requires Python module "xlrd >= 1.0.0". For CSV files, you may need to select the correct separator. "" 1- i need someone fix this issue. 2- change odoo server URL from server ip to domian 3- add SSL certificate to odoo server. the cost and time ? Regards
Full Description of issue when import XLS sheet to odoo 14
© 2006 — 2024 hirelancer.com is an affiliate website, listing the freelance projects. We are collaborating with other sites like getFreelancer.com. Feel free to bid on any project and good luck! You will need register first, before bidding or posting projects. Basic memberhsip is always free. We might earn commissions from referring you. You will never ever pay additional fees for we referred you.