[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to find dirs with single item



On Fri, 30 May 2014 17:17:29 +1000
Chris Angelico <rosuav@gmail.com> wrote:

> On Fri, May 30, 2014 at 3:38 PM, Marko Randjelovic <markoran@eunet.rs> wrote:
> > On Thu, 29 May 2014 22:43:29 +0100
> > Clive Standbridge <list-user@tgstandbridges.plus.com> wrote:
> >
> >> find temp |sed 's|[^/]*$||' |sort |uniq -u
> >
> > This doesn't work on this directory.
> >
> 
> Can you try the Python script on that, please? File system encodings
> can be a bit of a pain at times. If it doesn't work as "python", try
> "python3", as the two are a bit different as regards Unicode.
> 
> ChrisA
> 
> 

No problem, but please give me the python code to execute.

Regards

-- 
http://markorandjelovic.hopto.org

Please make your donation for humanitarian aid for flood victims in
Serbia: http://www.floodrelief.gov.rs/eng/


Reply to: