shell中的特殊变量IFS

当我愈来愈习惯python的编写风格时,我常常会想用bash去遍历一个文件的行,并将读取的行进行处理。python 但一个诡异的状况,若是个人文本相似于这样shell the first line. the second line. the third line.bash for line in `cat filename` do echo $line done  当我经过上面的方式遍历文件的每一
相关文章
相关标签/搜索