Discussion
Loading...

#Tag

Log in
  • About
  • Code of conduct
  • Privacy
  • About Bonfire
R.L. Dane :Debian: :OpenBSD: :FreeBSD: 馃嵉 :MiraLovesYou:
R.L. Dane :Debian: :OpenBSD: :FreeBSD: 馃嵉 :MiraLovesYou:
@rl_dane@polymaths.social  路  activity timestamp 5 days ago

P.S., the body of the parent #toot was created by a simple #shell #function:

function apod {
#Today's NASA Astronomy Picture of the Day info-fetcher
curl -sL 'https://apod.nasa.gov/apod/archivepix.html' \
|grep -m1 "[0-9][0-9]:" \
|sed 's/^/Date: /;
s|: *<a href="|\nURL: https://apod.nasa.gov/apod/|;
s/">/\nTitle: /; s/<.*$//'
echo
echo "#NASA #Astronomy #PictureOfTheDay"
}

#bash #ksh #mksh #shellScripting #unix #UnixShell #WebScraping #Scraping #HTML

Ethan Black
Ethan Black
@golemwire@fosstodon.org replied  路  activity timestamp 4 days ago

@rl_dane I've been getting into a shell called Elvish. https://elv.sh/
It lets you pipe around structured data like you find in modern programming languages, like arrays, maps, floating-point numbers, and the like. As well as normal POSIX byte streams.
It's not compatible with POSIX shells like Bash though, BTW.

#ElvishShell

  • Copy link
  • Flag this comment
  • Block

BT Free Social

BT Free is a non-profit organization founded by @ozoned@btfree.social . It's goal is for digital privacy rights, advocacy and consulting. This goal will be attained by hosting open platforms to allow others to seamlessly join the Fediverse on moderated instances or by helping others join the Fediverse.

BT Free Social: About 路 Code of conduct 路 Privacy 路
Bonfire social 路 1.0.1 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Code of Conduct