[Bug 1087753] [NEW] Output of ls not matching with sort, uniq combinations

Launchpad Bug Tracker 1087753 at bugs.launchpad.net
Fri Dec 7 19:35:37 UTC 2012


You have been subscribed to a public bug:

The output of the ls command as in the below, 
ls /bin /usr/bin | sort | uniq | wc -l
ls /bin /usr/bin | uniq | sort | wc -l

While the above two commands try to fetch the list of two folders /bin and /usr/bin, which contain some names, the output either after sorting and taking unique values, or after taking unique values and then sorting, should be the same.
However, the output of the above two commands is not alike which needs to be checked as to where the problem is.

Note :- The above mentioned type of command/ filter is working fine if
we use single directory for listing instead of multiple directories.


Regards,
Jnaneswar,
+91-9246308079

** Affects: coreutils (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: bot-comment
-- 
Output of ls not matching with sort, uniq combinations
https://bugs.launchpad.net/bugs/1087753
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to coreutils in Ubuntu.




More information about the foundations-bugs mailing list