Untitled attachment
https://mstdn.io/system/media_attachments/files/001/441/619/original/55060b570d78bda1.png
OK, so I still didn't go to bed, and I have a #lifeHack to share. Want to get head/tail or init/last on your bourne shell script's parameters? Welp, take a look at this - it's pretty cool, check the screenshot to understand what's going on.
Head: ${@:1:1}
Tail: "${@:2}"
Init: "${@:1:$#-1}"
Last: ${@:$#}
Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.
All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.