Skip to content

Instantly share code, notes, and snippets.

@ai2ys
Created March 3, 2025 09:37
Show Gist options
  • Save ai2ys/6bb92e335f37b15aaf03fd5668824165 to your computer and use it in GitHub Desktop.
Save ai2ys/6bb92e335f37b15aaf03fd5668824165 to your computer and use it in GitHub Desktop.
Equivalents for Linux Shell commands in PowerShell

Equivalents for Linux Shell commands in PowerShell

Equivalent for grep

Linux shell

<command> | grep <filter>

PowerShell

<command> | Select-String -Pattern <filter>

Equivalent for cat

Linux shell

cat <file>
cat <file> | grep <filter>

PowerShell

Get-Content <file>
Get-Content <file> | Select-String -Pattern <fitler>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment