8
2
I always have to submit the source codes in my printed assignment report. I have to copy and paste my course codes into the document and I find that it is an annoying task.
I want to solve this "copy and paste" problem. Therefore I did it with cat like that but it only works in the current directory. I hope it can display the file contents recursively.
ls -R *.java | xargs cat >> all_course.txt
Adding
| vim -in the end will allow you to navigate/grep through text and also highlight syntax if needed, sofind . -name "*.java" -exec cat {} \; | vim -– graceman9 – 2019-10-27T23:41:51.007