How do I perform file search in linux sorting the output?
-
Also see: Man page for find.
This could be a long list, terminate the output using
Ctrl-C
This does a find in the current directory and sorts the output using the ASCII sort order.
$ find | LC_ALL=C sort . ./.filec ./.filed ./filea ./fileb ./int ./test ./test/perf
Notice the difference without the ASCII sort. The dot files are not listed first.
$ find | sort . ./filea ./fileb ./.filec ./.filed ./int ./test ./test/perf
© Lightnetics 2024