我知道我可以通过这样做来完成标题中的要求:
input=abcd input=${input^^} #makes uppercase echo ${input:0:2} #gets first two letters
我想知道在一行中执行这两个操作的正确语法是什么?
bash
bash ×1