![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux-shell
lzystar123
这个作者很懒,什么都没留下…
展开
-
集群运行脚本
首先写一个脚本select_app02.sh如下:#!bin/bash hive -e "drop table default.tbl_play_pt_small_0;create table default.tbl_play_pt_small_0 as select a.p1,a.p2,a.deviceid from data_raw.tbl_play_hour a where a.dt=201原创 2015-03-30 19:00:13 · 520 阅读 · 0 评论 -
shell命令之date
date -d “-2 hour” “+%Y%m%d%H” 表示两小时之前的时间date -d “-1 day” “+%Y%m%d%H” 表示一天之前的时间原创 2015-03-23 16:14:13 · 391 阅读 · 0 评论 -
shell 转义
\” 表示引号 echo “test” # test echo “\”test\”,001” #”test”,001\表示反斜杠 echo \ #\\n 表示新行 \r 表示回车 \t 表示水平的制表符 \v 表示垂直的制表符 \b 表示后退符原创 2015-04-21 15:46:01 · 717 阅读 · 0 评论