BASH Script to Sort the Posts/Videos by Days
Writing a BASH script to list all videos of Teaching-Kids-Programming in the time order - making use of AWK programming:
#!/bin/bash
echo "# Teaching Kids Programming"
echo "[Sort by Categories](https://github.com/DoctorLai/Teaching-Kids-Programming/blob/main/README.md)"
curl -s "https://raw.githubusercontent.com/DoctorLai/Teaching-Kids-Programming/main/README.md" | grep "\[B站\]" | awk -F '|' '{
print $6"|"$5"|"$3"|"$4
}' | sort -k 1 | awk -F '|' 'BEGIN{days=1}{
print "- Day " days ": " $2$3$4$5
days ++
}' | tac
Here is what it produces:
https://github.com/DoctorLai/Teaching-Kids-Programming/blob/main/sort-by-days.md
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Thank you for reading ^^^^^^^^^^^^^^^
NEW! Following my Trail (Upvote or/and Downvote)
Follow me for topics of Algorithms, Blockchain and Cloud.
I am @justyy - a Steem Witness
https://steemyy.com
My contributions
- Video Downloader
- Steem Blockchain Tools
- Free Cryptos API
- VPS Database
- Computing Technology Blog
- A few useless tools
- And some other online software/tools
- Merge Files/Videos
- LOGO Turtle Programming Chrome Extension
- Teaching Kids Programming - Youtube Channel and All Contents
Delegation Service
Important Update of Delegation Service!
Support me
If you like my work, please:
- Buy Me a Coffee, Thanks!
- Become my Sponsor, Thanks!
- Voting for me:
https://steemit.com/~witnesses type in justyy and click VOTE
- Delegate SP: https://steemyy.com/sp-delegate-form/?delegatee=justyy
- Vote @justyy as Witness: https://steemyy.com/witness-voting/?witness=justyy&action=approve
- Set @justyy as Proxy: https://steemyy.com/witness-voting/?witness=justyy&action=proxy
Alternatively, you can vote witness or set proxy here: https://steemit.com/~witnesses