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.
我想在运行 shell 脚本时获取以逗号分隔的数据。查看示例输出;
value1,value2,value3
有什么想法吗?我使用的是centos 5.5。
IFS=',' read v1 v2 v3
IFS 是 bash 内置的分隔符变量。