Command Arguments Linux Shell Programming BASH Tutorial

preview_player
Показать описание


This Video Brought to you by:
Steve Morreale - Patreon supporter
Рекомендации по теме
Комментарии
Автор

I'm trying to do an assignment for my linux class but I don't quite understand how to take user input and use it in my script because I'm just starting out with linux programming.. this is the assignment and I'm totally lost, lol.

Please create a shell program that accomplishes the following:

1) Ask the user how many papers to grade?
2) Create a while loop that will loop the times neccessary for each paper's score to be entered.
3) Ask the user for each score (1-100).
4) count the number of loops
5) At the end of the program display the average score of all the papers

nolan
Автор

About the 'exit 1' or whatever number you set.
How do you check that in a script for EVERY command/subscript you run'?
To check everything makes the script unreadable.

Would be nice with an error handler kinda thing.

AliensInc.
Автор

I use your tmux config but looks like things have changed in the lastest versions of tmux

davidgomez
Автор

I need some advice. I will appreciate any help you are willing to lend.


I have a project that requires me to connect to a TCP socket on a system running a server that will pass csv data when the connection is made. My goal is to connect to the device, accept the data and pass that data to a SQL database. I'm thinking I can use Python to do all of this. Is python capable of this? And, if it isn't what tools would you use?

SomeGuyInSandy