월요일, 3월 13, 2006

How to use 'find' ? - (1)

Make HTML file that link to files that have patten string.
EX) Make HTML file shows link of all XML files that resided in sub folder.

HOW:
find . -name '*.xml' -printf '<a href="%p">%p</a><br>\n' > xmllist.html

if you want to ignore case,

find . -iname '*.xml' -printf '<a href="%p">%p</a><br>\n' > xmllist.html

댓글 없음: