我们知道有些Linux的命令涉及到一些高效率的算法,在此做出一个积累吧,不是系统的。
1、tail命令打印一个文件的最后num行
2、grep命令从文本中匹配字符串
基于正则表达式的匹配很快。
it is unadvisable to use the algorithm for non-explicit search patterns such as those given by regular expressions.
我们知道有些Linux的命令涉及到一些高效率的算法,在此做出一个积累吧,不是系统的。
基于正则表达式的匹配很快。
it is unadvisable to use the algorithm for non-explicit search patterns such as those given by regular expressions.
转载于:https://www.cnblogs.com/sylz/p/6049313.html