Find Jobs
Hire Freelancers

Simple Bash Script (Ubuntu) needed -- 2

$10-30 USD

Completed
Posted almost 3 years ago

$10-30 USD

Paid on delivery
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 $[ ] to force numeric calculation; example: $[$num1+$num2] 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"
Project ID: 30645698

About the project

5 proposals
Remote project
Active 3 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 work on it
$15 USD in 7 days
5.0 (11 reviews)
3.0
3.0
5 freelancers are bidding on average $39 USD for this job
User Avatar
Hello, Hope you are well. I've read your project description. I can do your project completely as you want. I'm very professional at server setup & programming. I'm in this profession for 3 years. I'm giving my skills below. My Skills: HTML, CSS, JS, jQuery, Bootstrap, Ajax, API Data Management, JSON Data Management, PHP, WordPress. Laravel, MySQL, C, Python, dJango SSH, Apache, Nginx, XAMPP, WAMP, AWS, LINUX, Windows Server We can discuss more on chat if you want. Regards, Md Arizuzzaman
$100 USD in 2 days
5.0 (7 reviews)
3.4
3.4
User Avatar
How are you! I am interested in your project and it's my top skill. I 've already decided to do this task, so you do better consult me. If you do good use of this chance, you will have perfect project and your own new friend. Let's contact closely each other and discuss your project. See you later!
$30 USD in 1 day
5.0 (3 reviews)
3.1
3.1
User Avatar
Hello, I can develop a script as python or shell script with you details. I think, python or shell scirpt is good for your task. Please reply to me for discussion Best Regard
$20 USD in 1 day
5.0 (1 review)
2.5
2.5
User Avatar
Hello, am a linux expert and i use linux as my default operating system can help you in this and quality work is assured.
$30 USD in 7 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Riverdale, United States
5.0
15
Payment method verified
Member since Aug 23, 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)
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.