Shell
文章平均质量分 55
龙子木
这个作者很懒,什么都没留下…
展开
-
shell中test命令用法详解
test命令用法。功能:检查文件和比较值 1)判断表达式 if test (表达式为真) if test !表达式为假 test 表达式1 –a 表达式2 两个表达式都为真 test 表达式1 –o 表达式2 两个表达式有一个为真 2)判断字符串 test –n 字符串转载 2017-05-21 11:26:46 · 2898 阅读 · 0 评论 -
xml文件格式化脚本
xml文件格式化脚本先创建临时目录mkdir ~/tmp#!/bin/bash#校验参数个数if [ $# != 1 ]then echo "please input at least one parameter,for example:./format-xml.sh filename" exitfiDIR=`pwd`DATE_TIME=`date "+%Y%m%d%H%M%S"`c...原创 2018-04-21 11:30:44 · 1978 阅读 · 0 评论 -
hadoop异常(ssh公钥认证)
[hadoop@bruce02 hadoop]$ start-dfs.sh Starting namenodes on [bruce02.mydomain] bruce02.mydomain: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). Starting datanodes localhost: Perm...原创 2018-04-21 14:23:12 · 1480 阅读 · 0 评论