3/22/2021 0 Comments Recursive Search Linux
I am quite sure, the sub-folders themselves have several.xml files, but none are showing up.In my case it just checked in the current directory only, didnt check the subdirectory.
![]() This passes the output from ls to grep, which then filters them to show just the.xml files. ![]() The one-liner in such case would be. What does need mention is the fact that find has multiple command line switches, such as -printf to print output in desired format, -type f to find only regular files, -inum to search by inode number, -mtime to search by modification date, -exec; to execute a particular command to process the file with passing file as argument ( where is standard find placeholder for current file), and many others so please read the manpage for find. The reputation requirement helps protect this question from spam and non-answer activity. Not the answer youre looking for Browse other questions tagged directory ls or ask your own question.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |