摘要:
#!/bin/sh if [ -e $(dirname "$0")/nsenter ]; then # with boot2docker, nsenter is not in the PATH but it is in the same folder NSENTER=$(dirname "$0")/ 阅读全文
摘要:
在Linux中有很多方法逐行读取一个文件的方法,其中最常用的就是下面的脚本里的方法,而且是效率最高,使用最多的方法。 这里通过生成一个大文件的方式来检验各种方法的执行效率。 方法1:while循环 脚本如下: function while_read_LINE_bottm(){While read L 阅读全文