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.
次のようなファイルがあります
aaaaa, aa 1 bbbbb, bb2 cccccccc, ccc 3/2
そして、次のような意味のコンマ区切りの値が必要です
aaaaa aa 1
最初の反復で
bbbbb bb2
2回目の繰り返しなど
誰かが私を助けることができますか?
ありがとうございました
while IFS=, read one two; do echo "$one" # aaaaa on first iteration echo "$two" # aa 1 on first iteration done < input-file