Question: Write a script that works in vim that searches the home directory for all files with the .java extension. For each file, list the number
Write a script that works in vim that searches the home directory for all files with the .java extension. For each file, list the number of lines in the file along with its full path. Use the find and wc commands (in combination with the for loop) Next use the sort and sed commands (inside the script) to filter the results to the ten longest java programs.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
