Wednesday, August 26, 2009

How to merge files under a directory recursively

I need this command while trying to merge different language files to install drupal. This command will merge all files that has extension .po recursively under a directory, to a file named translate.po at that directory. Command is below.

find ./ -name "*.po" -exec cat "{}">>translate.po \;

Share