On 2021/03/26 14:03, Peng Yu wrote:
Hi,When I try `ls -l dir1 dir2`, the order of dir1 and dir2 in the output is not necessarily the same as the input. How to make it the same as the input order? Thanks.
Use separate invocations of 'ls' to guarantee the order of output of the arguments. When you put more than one name on the command line, you will get some type of sorted order or the order they appear on disk.