Skip to content

Jessitron

Search
  • Blog
  • Twitter
  • Patreon
  • Talks
  • Newsletter
  • Search
Search
  • Blog
  • Twitter
  • Patreon
  • Talks
  • Newsletter
  • Search

powershell

PowerShell equivalent of find

March 1, 2021April 23, 2020

TL;DR: gci -r -fi <filename-pattern> My favorite use of find in bash is to find files whose name matches a pattern. For instance, find all the jar files under this directory: bash# find . -name ‘*.jar’ In PowerShell, there’s a program called “find” but it ain’t the same program. Short Answer Instead, use Get-ChildItem. The …

Read morePowerShell equivalent of find

Tags bash, powershell, reference, science, windows

PowerShell for `rm -rf`

March 12, 2020March 12, 2020

TL;DR – Remove-Item -Recurse -Force <path> On linuxy systems, rm -rf <path> means “remove this path and everything under it, dammit.” If the files aren’t writeable, but you own the files, it deletes them anyway. In PowerShell, rm is aliased to Remove-Item, but it doesn’t accept -rf. Windows Terminal> rm -rf fooRemove-Item : A parameter …

Read morePowerShell for `rm -rf`

Tags powershell, reference, windows

PowerShell equivalent of ack

February 15, 2020February 15, 2020

Today I found a typo in some docs: “account” was misspelled as “accuont.” I want to find that in the repository. As a bash user, I tried ack accuont but of course that command is not found in PowerShell. It took me a while to find the equivalent so here it is: Select-String -Path .\**\*.md …

Read morePowerShell equivalent of ack

Tags powershell

Rebase on the World: personal shell choice

November 27, 2019

“Why use bash when you have PowerShell?” <– words I did not expect to hear from my own mouth. Over the past few weeks I’ve begun learning PowerShell, and it’s an improvement over the UNIX (and family) shells, bash and ksh etc. PowerShell is newer. It builds on what those shells did right, and then …

Read moreRebase on the World: personal shell choice

Tags powershell, rebaseOnTheWorld

Development aesthetic: experiments

October 25, 2019

Software development is a neverending string of “What happens if I…?” Each new runtime, language, or tool is a new world with its own laws of nature. We get to explore each one with experiments. Objective Today I added another alias to my PowerShell $profile: To use that alias in my current shell, I need …

Read moreDevelopment aesthetic: experiments

Tags aesthetics, automation, experiments, powershell, windows

This verbosity makes me happy

October 25, 2019October 24, 2019

Today I learned how to create aliases in PowerShell. I’m switching from Mac to Windows, and I want the terminal in VS Code to do what I want. No terminal will work for me until it interprets gs as git status. I type that compulsively. In bash, setting that up looks like this: alias gs=’git …

Read moreThis verbosity makes me happy

Tags bash, powershell, readability

popular

  • PowerShell equivalent of find
    PowerShell equivalent of find
  • Run an OpenTelemetry Collector locally in Docker
    Run an OpenTelemetry Collector locally in Docker
  • PowerShell for `rm -rf`
    PowerShell for `rm -rf`
  • Spring Security for h2-console
    Spring Security for h2-console
  • TFS and Git: a comparison
    TFS and Git: a comparison

twitter

My Tweets

instagram

Look at these lovely bookends! I’d leave a review but Etsy thinks they’re still in transit. @youngoldthingsllc_
Where does understanding lie?

meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • Blog
  • Twitter
  • Patreon
  • Talks
  • Newsletter

Tags

abstraction agile architecture automation change clojure complexity concurrency design DevOps Docker domain driven design Engineering functional functionalPrinciples Generativity git Java javascript learning observability philosophy process property-based testing reference ruby scala science Software Development symmathesy systems Systems Thinking teams testing thinkingFunctionally tistil typescript Web Development wit Yak Shaving

Archives

Search

© 2023 Jessitron, LLC
Scroll back to top