Skip to content
/ BashLinq Public

.NET Core bridge to use LINQ from the command line

License

Notifications You must be signed in to change notification settings

UnoSD/BashLinq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BashLinq

.NET Core bridge to use LINQ from the command line

Example usages:

Run a terminal and go the the binary folder

Add aliases:

alias map='./BashLinq.exe select'
alias select='./BashLinq.exe select'
alias filter='./BashLinq.exe where'
alias where='./BashLinq.exe where'
alias groupby='./BashLinq.exe groupby'

Try some C# LINQ to map/filter other command's output

ls | where 'i => i.ToLower().Contains("a")'

ls | groupby 'i => i.Length'

#18
#    BashLinq.deps.json
#12
#    BashLinq.dll
#    BashLinq.pdb
#31
#    BashLinq.runtimeconfig.dev.json
#27
#    BashLinq.runtimeconfig.json

ls | select "ToUpper()" | where '!StartsWith("Bash")'

About

.NET Core bridge to use LINQ from the command line

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages