create account

RE: How to Write a Shell Script with Bash? Turkish Tutorial #1 by scipio

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @sedatyildiz/how-to-write-a-shell-script-with-bash-turkish-tutorial-1

· @scipio ·
Thank you for the contribution. It has been approved.

Suggestions for this and future bash (shell) tutorial series:
- `sh` is not `bash` and so if your script uses `bash` (2nd generation, "Bourne Again sh"), then you should be more specific and use `bash` in your shebang;
- in essence you only created a .sh file (you could have used `touch` instead of echo'ing, but alright), showed how to run a .sh file, chmod'ed it t 755 (not explaining what those numbers mean!), you appended some text, read user input, and did some extremely trivial math additions. Of course in "part 1" of a series you need to start somewhere, but I'd like to see **on this contribution** that you change the "What will I learn?" to "creating, modifying and running `sh files": telling users that they will learn shell scripting is a bit misleading...
- I'm looking forward to parts 2 and next of your shellscript tutorial series, but make sure to cover **focused** topics/concepts per tutorial and explain exactly what you are doing where, why and how.
@scipio

You can contact us on [Discord](https://discord.gg/uTyJkNm).
**[[utopian-moderator]](https://utopian.io/moderators)**
properties (22)
authorscipio
permlinkre-sedatyildiz-how-to-write-a-shell-script-with-bash-turkish-tutorial-1-20180116t132945986z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-01-16 13:29:45
last_update2018-01-16 13:29:45
depth1
children1
last_payout2018-01-23 13:29:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,157
author_reputation34,229,826,851,736
root_title"How to Write a Shell Script with Bash? Turkish Tutorial #1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,940,371
net_rshares0
@sedatyildiz ·
Hello, your edit has been made. I tried to keep it simple because it was the first lesson because you know a little complicated language structure. The next derste mathematical operations will be a bit more complex. Thank you for your approval and your interest.
properties (22)
authorsedatyildiz
permlinkre-scipio-re-sedatyildiz-how-to-write-a-shell-script-with-bash-turkish-tutorial-1-20180116t144337082z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-01-16 14:43:39
last_update2018-01-16 14:43:39
depth2
children0
last_payout2018-01-23 14:43:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length262
author_reputation4,535,285,897,770
root_title"How to Write a Shell Script with Bash? Turkish Tutorial #1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,955,475
net_rshares0