Powershell does not have awk and find. Are you using portable Ubuntu in Windows 10?
On Wed, Oct 19, 2016 at 9:49 PM, Dave Crozier <[email protected]> wrote: > Linux: > > find . -type f -printf "%f %s\n" | > awk '{ > PARTSCOUNT=split( $1, FILEPARTS, "." ); > EXTENSION=PARTSCOUNT == 1 ? "NULL" : FILEPARTS[PARTSCOUNT]; > FILETYPE_MAP[EXTENSION]+=$2 > } > END { > for( FILETYPE in FILETYPE_MAP ) { > print FILETYPE_MAP[FILETYPE], FILETYPE; > } > }' | sort -n > > { > > Write-Host "Counting ... $Ext = " -NoNewline > > $Files = $AllFiles | Where { $_.Extension -eq $Ext.Extension } > > $FilesSum = ($Files | Measure-Object Length -Sum).Sum > > Write-Host $FilesSum -- .~. Might, Courage, Vision. SINCERITY! / v \ 64-bit Ubuntu 9.10 (Linux kernel 2.6.39.3) /( _ )\ http://sites.google.com/site/changmw ^ ^ May the Force and farces be with you! _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CAGv=MJCoQFjNG9MjT62QzijMvFP16Bm0P1tKByuk=3kjeea...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

