Skip to content

CameronAM/posh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

posh

my posh utilities and helper snippets

Count uniq items in sets of things that match a pattern

  • pattern is a regex, select-string returns a "match" object
  • indexing -1 on split gets the /last/ item in the split

cat -path <file,file,...> | select-string -pattern "pattern" | %{ $_.ToString().Split(' ')[-1]; } | group

About

my posh utilities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors