Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はシェルスクリプト変数などを持っています "文字列" この文字列を別の変数の値として与えたい abc string=CDA のようにソートされた ADC を "順序付けられた" 変数に追加したい
$string=CDA $ordered=ADC
できるよ:
> string=CDA > s=$(grep -o . <<<"$string"|sort|tr -d "\n") > echo "$s" ACD