find and xargs

The two Unix Utilities I cannot live without are find and xargs. find is a utility that will recursively find files and xargs will let you run a command for each line in the input e.g.

'find . grep java$ xargs wc -l ' will count the number of lines for all the java files in the current directory and all subdirectories.

Comments

Popular posts from this blog

Developer Productivity

Oracle SQL JSON construct JSON Object