When you first learn linux, you need to learn a list of all the files in a directory called private/(private/ and its subdirectories have many files) that contains the string "cat", and you need to display the file path and user name for each file; The file name and user name are separated by commas(,). The instruction requirement is to use only grep, stat, xargs commands to complete.
All kinds of mistakes.
My idea was to grep the specific string cat first, use stat to display all the files in the "private/" directory, and finally use xargs to standardize the format, but I'm not familiar with the use of these instructions, and the output several times is not the answer.
need to output the result looks something like this: private/tmpazfaxca0 / tmpv4dfwkgl, games
0 Answer
No answer yet
这家伙很懒,什么都没留下...