How to generate rows for all subfolders

I want to create localized strings for all .m files in my project. However, they are not all reset in the Class folder; they are in several directories (many of them).

What is the best way to parse the whole tree and generate strings for localization using the genstrings command?

+3
source share
1 answer

In the project directory:

find . -name "*.m" | xargs genstrings <any options go here>

supposedly the easiest way. xargswill put the file names at the end of the command.

+8
source

Source: https://habr.com/ru/post/1782708/


All Articles