![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
Cris_Lee卡卡卡
https://github.com/lrs1353281004
展开
-
Pig脚本路径匹配规则-Shell glob pattern
对症下药真的很重要。 今天在写pig脚本时有一个简单的需求,需要批量输入某路径下部分指定路径下的文件。 Pig脚本中的路径变量应采用shell glob pattern匹配。 参考: http://teaching.idallen.com/cst8207/13w/notes/190_glob_patterns.html 而Pig 语言中内置的MATCH函数则采用的是Java正则匹配规则。...原创 2018-08-08 22:01:22 · 438 阅读 · 0 评论 -
linux、windows脚本不兼容踩坑记录
windows上写的脚本,直接拷贝到linux系统上运行可能会出现格式不兼容问题。情景还原:在pycharm中远程编辑linux服务器的代码,编写了一个shell脚本,在服务器运行sh脚本时报错:/bin/bash^M: bad interpreter: No such file or directory解决办法:比如文件名为myshell.sh,vim myshell.sh执...转载 2019-08-27 15:13:47 · 527 阅读 · 0 评论