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.
シェル スクリプトの実行時にカンマ区切りでデータを取得したい。サンプル出力を参照してください。
value1,value2,value3
アイデアはありますか?centos 5.5 を使用しています。
IFS=',' read v1 v2 v3
IFS は、bash に組み込まれている区切り変数です。