termtrick.com
Run
API
Facebook
Twitter
LinkedIn
Copy link
Get the first character of the variable
Trick copyright:
Bash-Oneliner <
https://github.com/onceupon/Bash-Oneliner
>
var=string echo "${var:0:1}" #s # or echo ${var%%"${var#?}"}
click the source code to copy