How to obtain the first letter in a Bash variable?

后端 未结 7 1033
無奈伤痛
無奈伤痛 2020-12-14 05:27

I have a Bash variable, $word, which is sometimes a word or sentence, e.g.:

word=\"tiger\"

Or:

word=\"This is          


        
7条回答
提交回复
热议问题