It's generally best to set the field separator inside the script itself, simply because it means you have one less command line argument to remember to type.
一般而言,最好在脚本内部设置字段分隔符,因为这样可以少输入一个命令行参数。
The first method also takes an argument for the separator string.
第一个方法还接受一个参数来作为分隔符。
In the second case, we supply the name separator, which suggests the purpose of the argument.
在第二行中,我们提供了参数名separator,同时也暗示了参数的用处。
应用推荐