Brand new to powershell scripting and having some trouble accomplishing what I would like. Never coded with this before.
This does what I want, but not as nicely I would like. Script searches all files in path, minus excludes, for a regex pattern. I want to output the found matches/groups in a specific format without duplicates.
$resultArray += $.Groups.Value + ' ' + $.Groups.Value is the part that bothers me. My original intention was to create an array of arrays that I could access by name. In my loop I could then check if the found name/type exists and if not add. Afterwards it would be easy to create my formatted output by looping through the result array. I could not for the life of me create an array of arrays accessible by name.
What I am searching for is icon usage in my project to create a list of all icons and their types used. Icons are in the format
fa-some-icon and each can have types
fab, fad, fal, far, fas . An example usage in my project would be something similar to
“fab fa-facebook-f fa-6x mb-20” . My goal is to create an output file of only the icons I use which can be used as a configuration file.