Skip to navigation
Getting x amount of first characters in bash
07.10.21
long="USCAGol.blah.blah.blah" short="${long:0:2}" echo "${short}" place="Paris" firstCharacter=${place:0:1} echo $firstCharacter
https://reactgo.com/bash-get-first-character-of-string/
Reply
Anonymous
Information Epoch 1732527087
Files are bags of bytes.
Home
Notebook
Contact us