Re: [gentoo-user] locating large disk files

2014-07-13 Thread Bruce Schultz
On 14 July 2014 6:53:30 AM AEST, Joseph wrote: >On 07/13/14 23:25, Dimitri Semitsoglou-Tsiapos wrote: >>On Sun, 13 Jul 2014 14:03:41 -0600 >>Joseph wrote: >> >>> I'm trying to clean up my home directory by locating large disk >>> files. I used: find / -type f -size +2k -exec ls -lh {} \; | aw

Re: [gentoo-user] locating large disk files

2014-07-13 Thread Erik Mackdanz
Instead of '-exec ls' I recommend the -ls or -printf switches. If you really require the human-formatted size, you can also just quote {} properly. Joseph writes: > I'm trying to clean up my home directory by locating large disk files. I used: > find / -type f -size +2k -exec ls -lh {} \; |

Re: [gentoo-user] locating large disk files

2014-07-13 Thread Joseph
On 07/13/14 23:25, Dimitri Semitsoglou-Tsiapos wrote: On Sun, 13 Jul 2014 14:03:41 -0600 Joseph wrote: I'm trying to clean up my home directory by locating large disk files. I used: find / -type f -size +2k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }' Take a look here regarding why yo

Re: [gentoo-user] locating large disk files

2014-07-13 Thread Neil Bothwick
On Sun, 13 Jul 2014 14:03:41 -0600, Joseph wrote: > I'm trying to clean up my home directory by locating large disk files. > I used: find / -type f -size +2k -exec ls -lh {} \; | awk '{ print > $8 ": " $5 }' > > but I'm getting strange output: > 13:57: 194M > 2011: 57M > 17:05: 31M File name

Re: [gentoo-user] locating large disk files

2014-07-13 Thread Dimitri Semitsoglou-Tsiapos
On Sun, 13 Jul 2014 14:03:41 -0600 Joseph wrote: > I'm trying to clean up my home directory by locating large disk > files. I used: find / -type f -size +2k -exec ls -lh {} \; | awk > '{ print $8 ": " $5 }' Take a look here regarding why you should never parse ls' output: http://mywiki.woole

Re: [gentoo-user] locating large disk files

2014-07-13 Thread Jc GarcĂ­a
2014-07-13 14:19 GMT-06:00 Michael Orlitzky : > On 07/13/2014 04:03 PM, Joseph wrote: >> I'm trying to clean up my home directory by locating large disk files. I >> used: >> find / -type f -size +2k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }' >> >> but I'm getting strange output: > > Just

Re: [gentoo-user] locating large disk files

2014-07-13 Thread Tuomo Hartikainen
On 140713 1403, Joseph wrote: > I'm trying to clean up my home directory by locating large disk files. I used: > find / -type f -size +2k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }' > > but I'm getting strange output: > 13:57: 194M > ... Try find / -type f -size +2k -exec ls -lh {} \

Re: [gentoo-user] locating large disk files

2014-07-13 Thread Michael Orlitzky
On 07/13/2014 04:03 PM, Joseph wrote: > I'm trying to clean up my home directory by locating large disk files. I used: > find / -type f -size +2k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }' > > but I'm getting strange output: Just use "du -h" instead of "ls -lh" and awk: find / -type f

[gentoo-user] locating large disk files

2014-07-13 Thread Joseph
I'm trying to clean up my home directory by locating large disk files. I used: find / -type f -size +2k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }' but I'm getting strange output: 13:57: 194M 2011: 57M 17:05: 31M 2011: 27M 06:02: 41M 11:31: 21M 11:39: 28M 22:02: 62M 2012: 26M 12:53: 104M