this one-line shell script not working on Mac - any ideas how to fix?

Posted by Greg on Stack Overflow See other posts from Stack Overflow or by Greg
Published on 2010-03-31T07:08:27Z Indexed on 2010/03/31 7:13 UTC
Read the original article Hit count: 326

Filed under:
|
|
|

Hi,

This unix command I haven't got quite working on Mac yet - any ideas what needs adjusting:

find . | grep  '.*\(css\|js\|rjs\|rhtml\|rb\)$' | sort | while read in; do printf "\n\n####\n# FILE: %s\n####\n\n" ${in} >> onebigfile; cat "${in}" >> onebigfile; done

thanks

© Stack Overflow or respective owner

Related posts about osx

Related posts about osx-snow-leopard