find命令先查找符合的文件,for循环结合mv和cp命令进行对文件处理#!/bin/bashfind/root/test/-typef-name"*.txt">/tmp/tar.txt#找到符合的文件写入到tar.txt文本里面foriin`cat/tmp/tar.txt`#遍历文本domv$i$i.bakdoned=`date+%y%m%d%H%M%S`#创建一个目录文件防止重复mkdi
分类:
其他好文 时间:
2020-10-18 17:00:07
阅读次数:
23
hive 建表语法 内部表: create table fzname (id int,name string,age int,tel string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS TEXTFILE; 1 2 3 4 5 ...
分类:
其他好文 时间:
2020-10-18 16:40:39
阅读次数:
25
Step 5 Summary and Homework 在工作学习中,我们经常会遇到初中英语教案这样的问题。夏普说过:不经巨大的困难,不会有伟大的事业。因此,面对初中英语教案我们应该有努力探索的精神。一步二步三步步步高升,一天两天三天天天向上。对于这个问题也是一样的。读书忌死读,死读钻牛角,对于初中 ...
分类:
其他好文 时间:
2020-10-18 16:28:18
阅读次数:
22
localStorage设置key和内容 localStorage.setItem(key,JSON.stringify(value)); localStorage删除数据 localStorage.removeItem(key); 封装方法 set(key:string,value:any){ l ...
分类:
其他好文 时间:
2020-10-18 10:21:23
阅读次数:
36
#!/bin/bash #by wwp 2020-10-14 for ip in `cat ip.list` do { ping -c1 -W1 $ip &>/dev/null if [ $? -eq 0 ];then ssh $ip "sed -ri '/^#UseDNS/cUseDNS no' ...
分类:
其他好文 时间:
2020-10-18 09:49:45
阅读次数:
23
查看liunx系统基本信息 lscpu cpu查看 free -h 内存查看 lsblk 硬盘查看 init 3 关闭可视化窗口 init 6 重启 reboot 重启 host name -i 查看 ip ip addr show 查看网卡 uname -r 查看内核 cat /etc/redha ...
分类:
其他好文 时间:
2020-10-18 09:48:30
阅读次数:
24
#!/bin/bash#by wwp Obtain hostname>hostname.txtip=`cat ip.list`for i in $ipdo Hostname=`ssh -t $i hostname` echo -e "$i \t $Hostname" >> hostname.txtd ...
分类:
其他好文 时间:
2020-10-18 09:45:27
阅读次数:
21
关键源码 1 public ConfigurableApplicationContext run(String... args) { 2 StopWatch stopWatch = new StopWatch(); 3 stopWatch.start(); 4 ConfigurableApplica ...
分类:
编程语言 时间:
2020-10-18 09:44:37
阅读次数:
23
1、系统版本、java环境查看 [root@linuxprobe home]# cat /etc/system-release ## 查看系统版本 Red Hat Enterprise Linux release 8.0 (Ootpa) [root@linuxprobe home]# java ## ...
分类:
编程语言 时间:
2020-10-16 11:28:50
阅读次数:
46
mnist = tf.keras.datasets.mnist (x_train, y_train), (x_test, y_test) = mnist.load_data() x_train, x_test = x_train / 255.0, x_test / 255.0 model = tf. ...
分类:
其他好文 时间:
2020-10-16 10:58:02
阅读次数:
22