Re: long string using find and "-exec ls -ls" to find part-of fi

看板FB_questions作者時間11年前 (2014/07/01 13:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串19/20 (看更多)
Polytropon wrote: > Allow me to add one little reminder: > > When using xargs, usually _one_ program will be executed > with a command line containing _all_ results of the find > command. If you want to run a program on _each_ of the > results, this is the typical sh solution: > > find ... | while read F; do > somecommand $F > done It's easier to use "xargs -n1" which I do all the time. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
文章代碼(AID): #1Jia2EuW (FB_questions)
討論串 (同標題文章)
完整討論串 (本文為第 19 之 20 篇):
文章代碼(AID): #1Jia2EuW (FB_questions)