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

看板FB_questions作者時間11年前 (2014/06/30 13:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/20 (看更多)
===== Organization: Thought Unlimited. Public service Unix since 1986. Of_Interest: With 27++ years of service to the Unix community. On Mon, Jun 30, 2014 at 01:04:50PM +0800, Gregory Orange wrote: > On 30/06/14 12:56, Gary Kline wrote: > >how, using the find utility and no temp files, can I get a ls -lsi > >listing of something like: > > "foo.tar" andOr > > "foo.tgz" andOr > > "foo.tar.gz" > > How about this? > find . -name foo.tar -o -name foo.tgz -o -name foo.tar.gz|xargs ls -lsi yup. then WHY O WHY O WHY doesnt this work:: find . -name "foo.t*" |xargs ls -lsi work? is it only my memory [[delusional] that made me think that "foo.t*" expanded into your cmd string?? I thought the "*" expanded into what you have to save the hacker typing/keystrokes. thanks! -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix Twenty-seven years of service to the Unix community. _______________________________________________ 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): #1JiFPIOg (FB_questions)
討論串 (同標題文章)
完整討論串 (本文為第 3 之 20 篇):
文章代碼(AID): #1JiFPIOg (FB_questions)