xargs 参数

2020-03-04 14:42:48 浏览数 (1)

hadoop fs -ls /source/recommend/at_access | awk -F "/" '{print $NF}' | grep -v $(date %Y%m%d) | grep -v F | xargs -i sh press_by_handler.sh {} recommend/at_access,200,5

hadoop fs -ls /source/recommend/at_access | awk -F "/" '{print $NF}' | grep -v $(date %Y%m%d) | grep -v F | xargs -| {} sh press_by_handler.sh {} recommend/at_access,200,5

-i 参数 : {} 代表占位符

-l 参数: 首先指定占位符是{} (必须指定)

0 人点赞