![]() type f -name '.' the negates the following expression, here a filename that contains a '.' you can also use the -maxdepth option to reduce the search depth. This will also work with ls -l, because the extension is normally the last thing on the line (exceptions if you have lines like -> /home/jones/tmp", where links are followed by their targets). 1 Answer Sorted by: 104 you could use: find. Well, GNU find ( default on ubuntu 11.04) works correctly with both parens and -print OR without (parens and -print). save file and another file with no extension whose name ends in 'e'. Ask Question Asked 14 years, 7 months ago. rtf files, for example, are listed together, after a. They're sorted by last character, then next-to-last, etc. Method 1: Using Find command Find is a highly flexible command used to search files based on a variety of conditions. ls gives its output, with any flags you want. ![]() ![]() ls gives its output, with any flags you want Reversing the order of characters in every line. On bash, this will sort of work: $ ls | rev | sort | revįrom man rev: The rev utility copies the specified files to the standard output,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |