Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
3
Newest
 Supporter
Impact
~417 people reached

  • 0 posts edited
  • 0 helpful flags
  • 8 votes cast
May
25
comment Calculating total file size by extension in shell
Note also that this script doesn't work well with files without extension. It will treat whole file name as extension. Add if [ "$name" == "$ext" ]; then ext="*no_extension*"; fi after ext=${name##*.} if you need to prevent it. This will put all files without extension into *no_extension* group (I'm using *no_extension* because * is not a valid character in file name)
May
25
comment Calculating total file size by extension in shell
This script doesn't not work well with file names with tab character. Changing read name size to read size name and -printf "%f\t%s\n" to -printf "%s\t%f\n"should fix it.
May
25
comment Calculating total file size by extension in shell
Note that this script has horrible performance issues (still, I upvoted it). It scans input directory X times (where X is number of extensions found in the directory). If you need something faster check @glenn jackman answer
May
8
comment How come Core i7 (desktop) dominates Xeon (server)?
I'm not completely sure but as far as I know E3 line isn't designed for multi CPU setups. E3 supports 1CPU, E5 2 CPUs and E7 2 and more CPUs
Jun
6
accepted collectd: Do I need the same plugins on client and server?
Apr
8
asked collectd: Do I need the same plugins on client and server?
Sep
1
awarded  Supporter
Aug
3
comment How do you disable the “last accessed” attribute on NTFS/Windows?
I don't see why backup programs would use it? I think such software would rely on last modified attribute instead.
Jul
29
awarded  Scholar
Jul
29
accepted Sharing folder with 10m+ files on win xp takes hours to set access rights
Jul
27
awarded  Student
Jul
27
revised Sharing folder with 10m+ files on win xp takes hours to set access rights
edited tags
Jul
27
asked Sharing folder with 10m+ files on win xp takes hours to set access rights