Skip to main content
Copy edited
Source Link
terdon
  • 252.3k
  • 69
  • 480
  • 718

How to display a sorted list of files that contains curtaincertain string in linux terminal

Assume I have 3 folders in different directories, some of them containscontaining some more subfolders, and in each folder/subfolder I have a text filefiles named test1, test2, test3 etc..., which containscontain the string hello in some way. It can be just hello, it can be helloJASKFNASKFN and etc.

How can I display a sorted list of those files, say? Say I want to sort by their names, or by the modified date. I do understand that I can use the grep or find command to search and display those files, but ImI'm not sure how can I display them in a sorted way.

How to display a sorted list of files that contains curtain string in linux terminal

Assume I have 3 folders in different directories, some of them contains some more subfolders, and in each folder/subfolder I have a text file named test1, test2, test3 etc..., which contains the string hello in some way. It can be just hello, it can be helloJASKFNASKFN and etc.

How can I display a sorted list of those files, say I want to sort by their names, or by the modified date. I do understand that I can use the grep or find command to search and display those files, but Im not sure how can I display them in a sorted way.

How to display a sorted list of files that contains certain string in linux terminal

Assume I have 3 folders in different directories, some of them containing some more subfolders, and in each folder/subfolder I have text files named test1, test2, test3 etc..., which contain the string hello in some way. It can be just hello, it can be helloJASKFNASKFN etc.

How can I display a sorted list of those files? Say I want to sort by their names, or by the modified date. I do understand that I can use the grep or find command to search and display those files, but I'm not sure how can I display them in a sorted way.

Formatting
Source Link
AdminBee
  • 23.6k
  • 25
  • 55
  • 77

Assume I have 3 folders in different directories, some of them contains some more subfolders, and in each folder/subfolder I have a text file named "test1"test1, "test2'test2, "test3"test3 etc..., which contains the string "hello"hello in some way. It can be just "hello"hello, it can be "helloJASKFNASKFN"helloJASKFNASKFN and etc.

How can I display a sorted list of those files, say I want to sort by their names, or by the modified date. I do understand that I can use the grepgrep or findfind command to search and display those files, but Im not sure how can I display them in a sorted way.

Thanks in advance.

Assume I have 3 folders in different directories, some of them contains some more subfolders, and in each folder/subfolder I have a text file named "test1", "test2', "test3" etc..., which contains the string "hello" in some way. It can be just "hello", it can be "helloJASKFNASKFN" and etc.

How can I display a sorted list of those files, say I want to sort by their names, or by the modified date. I do understand that I can use the grep or find command to search and display those files, but Im not sure how can I display them in a sorted way.

Thanks in advance.

Assume I have 3 folders in different directories, some of them contains some more subfolders, and in each folder/subfolder I have a text file named test1, test2, test3 etc..., which contains the string hello in some way. It can be just hello, it can be helloJASKFNASKFN and etc.

How can I display a sorted list of those files, say I want to sort by their names, or by the modified date. I do understand that I can use the grep or find command to search and display those files, but Im not sure how can I display them in a sorted way.

Source Link

How to display a sorted list of files that contains curtain string in linux terminal

Assume I have 3 folders in different directories, some of them contains some more subfolders, and in each folder/subfolder I have a text file named "test1", "test2', "test3" etc..., which contains the string "hello" in some way. It can be just "hello", it can be "helloJASKFNASKFN" and etc.

How can I display a sorted list of those files, say I want to sort by their names, or by the modified date. I do understand that I can use the grep or find command to search and display those files, but Im not sure how can I display them in a sorted way.

Thanks in advance.