哪位老哥帮忙解答一下,关于 shell 中 IFS 问题

2019-05-03 07:50:21 +08:00
 opsonly

源文件为

$ cat -E people
Charlie Smith Sally Smith113$
122$
Hank Parker$
114$
Jane Bailey 121$
Bill Williams$
100$
3151 次点击
所在节点    Linux
3 条回复
opsonly
2019-05-03 07:52:41 +08:00
要求输出格式为
```
1: ‘ Charlie Smith 122 ’

2: ‘ Sally Smith 113 ’

3: ‘ Hank Parker 114 ’

4: ‘ Jane Bailey 121 ’

5: ‘ Bill Williams 100 ’
```
jpmorn
2019-05-03 09:26:25 +08:00
这看着不太有规律啊
opsonly
2019-05-03 11:34:41 +08:00
考点是 shell 中的 IFS,题意是让通过转换 IFS 来实现,我也有点懵

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/560636

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX