Jorge Cornejo :mx: :zac: :lah: · @xchido
54 followers · 128 posts · Server ataricafe.com

100 days of code BASH edition

💻 Day 4 created my own system variable, made persistent within the .bashrc file.
[export hoy="$((date +"%H") | awk '{if ($1 < 12) print "morning"; else if ($1 >= 12 && 1 < 17) print "afternoon"; else if ($1 >= 17 && $1 < 20) print "evening"; else print "night";}')"] (OpenAI GPT-3 script with few corrections) Displays the time of day in morning/afternoon/evening/and night format!

#bash #linux #kali #wslg #100dasyofcode #bashscript #calendar #time #bashrc

Last updated 2 years ago

Jorge Cornejo :mx: :zac: :lah: · @xchido
48 followers · 112 posts · Server ataricafe.com

100 days of code BASH edition! :linux:

Day 3, expanding on the previous script adding more statements to display more system variables dealing with time formats and calendars.

#bash #linux #kali #wslg #100dasyofcode #bashscript #calendar #time #timezones

Last updated 2 years ago

Jorge Cornejo :mx: :zac: :lah: · @xchido
47 followers · 109 posts · Server ataricafe.com

100 days of code - BASH edition!

Day 2, using what I got from Open AI GTP-3, I expanded the script and made a few other statements to display additional system variables.

#bash #linux #kali #wslg #100dasyofcode #openai #gtp3 #bashscript

Last updated 2 years ago

· @marionline
203 followers · 4372 posts · Server mastodon.art

I found a that might be very interesting to do for some of us:

100daysofcode.com/about/

Have you ever tried it? What do you think?

#100dasyofcode #learning #geek #programming #coding #challenge

Last updated 3 years ago