竞争无处不在,青春永不言败!专业*代码,副业修bug

Talk is cheap , show me the code!



随笔分类 -  万物皆文件

摘要:用 expect 来代替人工输入实现人机交互 !/bin/env expect spawn ssh 10.0.x.xxx expect "Enter" send "password123\n" interact exit 首先,要安装expect,linux expect的安装 1.安装相应的包 y 阅读全文
posted @ 2018-08-27 16:50 云雾散人 阅读(194) 评论(0) 推荐(0)
摘要:题目一: 给定一个文本文件 file.txt,请只打印这个文件中的第十行。 示例: 假设 file.txt 有如下内容: Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 Line 8 Line 9 Line 10 你的脚本应当显示第十行: Line 阅读全文
posted @ 2018-08-13 14:42 云雾散人 阅读(1008) 评论(0) 推荐(0)

Your attitude not your aptitude will determine your altitude!

如果有来生,一个人去远行,看不同的风景,感受生命的活力!