On 2/7/2016 4:17 AM,
ne...@tin.it wrote:
> Hi all
>
> A simple matter
>
> How to awk examines files in a folder tree, recursively?
>
>
> Thanks in advance
>
> Regards
A big hurdle to newcomers to UNIX is accepting that the UNIX approach is to
combine multiple small, specialized tools to solve problems, not to have
jack-of-all-trade tools that do everything, and after that to learn which tools
are the right ones for which job.
In this case, the general purpose UNIX tool to manipulate text file contents is
"awk" and the UNIX to find files is "find" and the UNIX tool to call another
tool based on it's input is "xargs" so one solution would be:
find <args> | xargs awk '<script>'
Check the man pages and google examples of find, xargs, and awk.
Ed.