Gentoo Archives: gentoo-user

From: Bertram Scharpf <lists@×××××××××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] showing files in numerical order
Date: Thu, 20 Oct 2016 15:11:37
Message-Id: 20161020151114.GA11948@becker.bs.l
In Reply to: [gentoo-user] showing files in numerical order by Philip Webb
1 On Thursday, 20. Oct 2016, 08:25:22 -0400, Philip Webb wrote:
2 > Using Gwenview with KDE 4, the thumbnail view showed images
3 > in correct numerical order : image1 image2 ... image9 image10 ... .
4 > With KDE 5, it's gone stupid : image1 image11 image12 ...
5 > image 19 image2 image20 image21 ...
6 >
7 > Is there a setting anywhere
8 > to tell it to list files in the proper numerical order ?
9
10 I know it is a smart-arse answer, but it's better for sore
11 eyes if you rename your files to unique-width numbers.
12
13 $ for f in image* ; do mv $f image_`printf %03d ${f##image}` ; done
14
15 (This works for zsh and may need slight changes for bash.)
16
17 Bertram
18
19
20 --
21 Bertram Scharpf
22 Stuttgart, Deutschland/Germany
23 http://www.bertram-scharpf.de

Replies

Subject Author
Re: [gentoo-user] showing files in numerical order Philip Webb <purslow@××××××××.net>