When I run "Get-ChildItem" PowerShell returns below
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2021-05-02 9:45 PM 47726 abc.123.Copy.2.pdf
-a---- 2021-05-02 9:45 PM 47726 abc.123.Copy.3.pdf
-a---- 2021-05-02 9:45 PM 47726 abc.123.Copy.4.pdf
-a---- 2021-05-02 9:45 PM 47726 abc.123.Copy.6.pdf
-a---- 2021-05-02 9:45 PM 47726 zxc.098.Copy.2.pdf
-a---- 2021-05-02 9:45 PM 47726 zxc.098.Copy.3.pdf
-a---- 2021-05-02 9:45 PM 47726 zxc.098.Copy.4.pdf
-a---- 2021-05-02 9:45 PM 47726 zxc.098.Copy.5.pdf
-a---- 2021-05-02 9:45 PM 47726 zxc.098.Copy.6.pdf
-a---- 2021-05-02 9:45 PM 47756 poi.787.Copy.1.pdf
How can I find out how to get the amount of files and their total sizes based on the similar starting name to output something like below?
Total size of similar files:
abc = 190,904
zxc = 238,630
poi = 47756
Total files:
abc = 4
zxc = 5
poi = 1