https://github.com/unosd/bashlinq
.NET Core bridge to use LINQ from the command line
https://github.com/unosd/bashlinq
bash csharp dotnet-core dynamic-linq linq
Last synced: 10 months ago
JSON representation
.NET Core bridge to use LINQ from the command line
- Host: GitHub
- URL: https://github.com/unosd/bashlinq
- Owner: UnoSD
- License: gpl-2.0
- Created: 2017-07-30T11:50:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-30T12:49:53.000Z (over 8 years ago)
- Last Synced: 2025-01-17T10:44:19.893Z (12 months ago)
- Topics: bash, csharp, dotnet-core, dynamic-linq, linq
- Language: C#
- Size: 14.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BashLinq
.NET Core bridge to use LINQ from the command line
Example usages:
Run a terminal and go the the binary folder
Add aliases:
```bash
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
```bash
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")'
```