| Author |
Message |
woflux
Joined: 11 Sep 2012 Posts: 16
|
Posted: Thu 03 Jan 2013, 12:45 Post subject:
size counter |
|
Hello,
I have a folder full of files and Id like Linux to list the name of files with same size, how can I do this ?
|
|
Back to top
|
|
 |
slenkar
Joined: 10 Jul 2009 Posts: 129
|
Posted: Thu 03 Jan 2013, 14:07 Post subject:
|
|
how about menu-filesystem-graphical disk usage
|
|
Back to top
|
|
 |
SFR

Joined: 26 Oct 2011 Posts: 573
|
Posted: Thu 03 Jan 2013, 15:02 Post subject:
|
|
Hmm, quite unusual problem, but let's try...
In a bit tricky way (to handle filenames with spaces properly), but this one-liner should do what you wish.
Open terminal window in desired folder and type/paste this:
| Code: | | find . -type f -print0 | xargs -0 du -b | sort -h | tr " " "`echo -e '\x01'`" | rev | uniq -D -f1 | rev | tr "`echo -e '\x01'`" " " |
(the output will be: size_in_bytes filename)
I'm sure there must be more elegant way (probably in awk), but we have to wait for an expert.
Greetings!
_________________ [O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9911 Location: Arizona USA
|
Posted: Thu 03 Jan 2013, 16:12 Post subject:
|
|
If you don't mind using ROX, first click the "Show extra details" view, then click the column heading called "Size." This will order the files in the folder in ascending (or descending, if you click the "Size" heading twice) order of size. If two files are the same size, they will be adjacent in the list.
|
|
Back to top
|
|
 |
Ibidem
Joined: 25 May 2010 Posts: 262
|
Posted: Sat 05 Jan 2013, 17:17 Post subject:
|
|
Only gives size in kilobytes, unfortunately.
|
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1239 Location: Ukraine
|
Posted: Sat 05 Jan 2013, 17:34 Post subject:
|
|
This gives "human-readable"size (i.e k, M, G):
with kind regards,
vovchik
|
|
Back to top
|
|
 |
|