从每个目录执行命令
dir-exec的Python项目详细描述
安装
$ [sudo] pip install dir-exec
脚本使用
command | ^{ |
---|---|
^{ | ^{ |
示例
$ find ~/git/gists -type d -mindepth 1 -maxdepth 1 -print0 | xargs -0 dir-exec command
执行函数
func(){ ... }export -f func find ~/git/gists -type d -mindepth 1 -maxdepth 1 -print0 | xargs -0 dir-exec func