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

看板FB_questions作者時間11年前 (2014/07/01 06:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串15/20 (看更多)
On Mon, 30 Jun 2014 14:39:09 -0700, Gary Kline wrote: > ive got about 15-20 find examples and most use "-exec" foob {} \; > or whatever. I kept trying to use ls -lsi AND -exec. Zip. You can of course do without using find: Either use ls output or even let the shell itself expand *. For example: ls *.tar *.tar.gz *.tgz | while read F; do somecommand $F done By the shell: for F in *.tar *.tar.gz *.tgz; do somecommand $F done This should work similarly (except the order of the results might be different than from find, and the glob output itself will probably look different, and adding a path usually has to be done manually if not run _for_ the current directory). > One totally OT thing. my sysadmin is or will be on his honeymoon > but installed FBSD 10.X. without ports. do you know what magic > command I use to install the entire ports tree? You can either use the installation media or pull it from FTP: # cd /tmp # fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/10.0-RELEASE/ports.txz # tar xzvf ports.txz -C / # rm ports.txz This will give you the ports tree at the date of the RELEASE. Note that you have to adjust version numer and arch name according to your exact installation. Of course you could also use SVN for a first checkout, but it's probably faster with the "stock" tree. More info about updating the ports tree with Subversion here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/svn.html -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... _______________________________________________ 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): #1JiTuUP8 (FB_questions)
討論串 (同標題文章)
完整討論串 (本文為第 15 之 20 篇):
文章代碼(AID): #1JiTuUP8 (FB_questions)