Skip to main content
4 events
when toggle format what by license comment
Oct 13, 2015 at 1:28 comment added G-Man Says 'Reinstate Monica' (Cont’d) …  (2) Even making those assumptions, your answer reports any path that appears once — or 11 times, or 21, 31, 451, 2001, etc.  (3) Overall, this is unnecessarily complicated.  For starters, read about UUOC.  But also, you’re missing the point of uniq — keeping the assumption about the field length, you can simplify the command to sort text.tx | uniq -u -w11.
Oct 13, 2015 at 1:27 comment added G-Man Says 'Reinstate Monica' (1) printf "%s\n" "/path/foo/X barsy" "/path/foo/Y footsy" will also produce the requested output.  But that would be stupid; that just produces the correct result for the example input, not the problem in general.  By the same token, your answer is inappropriately tailored to the example input; it assumes that the data in the first column always begins with / and is 11 characters long, and that there are only two columns — none of which was specified in the problem description.  … (Cont’d)
Oct 12, 2015 at 23:29 review First posts
Oct 13, 2015 at 1:30
Oct 12, 2015 at 23:28 history answered Dario Garcia CC BY-SA 3.0