Shell中巧用$(command),将命令行输出作为参数插入

tar打包时排除某些目录

tar $(ls|grep -v filename|grep -v filename)

mv时排除某些目录

mv $(ls|grep -v filename|grep -v filename)

原文地址:https://www.cnblogs.com/victorfrost/p/10929382.html