【发布时间】:2014-03-02 13:06:24
【问题描述】:
我一直坚持这一点,似乎找不到任何好的技巧来让它发挥作用。 好的,所以我有一个名为“tweets”的文件,它有几百行。我需要将每一行作为它自己的变量。
例子:
root@host:~$ cat tweets
this is line one
this is line two
this is line three
好的,所以我需要将每一行设置为一个变量。谢谢!
【问题讨论】:
标签: string bash file variables grep