2021年4月17日

多开发机别名跳转脚本片段

摘要: #! /bin/bash # @author # @breif auto ssh function show_usage(){ echo -e " This is Usage " echo -e " -h: which host to go,for example dev041" } functio 阅读全文

posted @ 2021-04-17 12:05 DeNiro 阅读(40) 评论(0) 推荐(0)

shell 循环读文件

摘要: #! /bin/sh for line in `cat xxx.list` do echo $line done 阅读全文

posted @ 2021-04-17 11:54 DeNiro 阅读(130) 评论(0) 推荐(0)

php读文件代码片段

摘要: function readFromFile($fileName,&$arrOutPut){ $handle = @fopen($fileName, "r"); if ($handle) { while (!feof($handle)) { $buffer = fgets($handle, 4096) 阅读全文

posted @ 2021-04-17 11:53 DeNiro 阅读(61) 评论(0) 推荐(0)

导航