Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7721595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:57:49+00:00 2026-06-01T03:57:49+00:00

On Linux, I often use grep with context to find usage information in man

  • 0

On Linux, I often use grep with context to find usage information in man pages. Something like

man ls | grep -e '-a' -A 5

will give me enough context to know what the -a option does.

I think Select-String can do something similar, but I can’t seem to pipe in the content of Get-Help, just a Get-Help object. I’d like to do something like

Get-Help Get-ChildItem -Detailed | Select-String -Pattern "-Name" -Context 5

to get information about the -Name usage, but this doesn’t seem to work.

What’s a good way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T03:57:51+00:00Added an answer on June 1, 2026 at 3:57 am

    As @Lee said, if you want just the help for a parameter, use Get-Help‘s -Parameter argument. Otherwise, you can use Select-String if you convert the output of Get-Help to an array of strings with Out-String -Stream.

    Get-Help Get-ChildItem| Out-String -Stream | Select-String file
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some scripts that I often use in both windows(cygwin) and linux, I'd
I often use simple Chinese phrases like 你好 to test that my code can
GVim on linux I use :!some command inside Vim often. I've just switched from
Linux provides the stime(2) call to set the system time. However, while this will
I use GDB to debug C/C++ programs very often, and I'm reasonably knowledgeable with
When I Ctrl C my program on linux I often get output that looks
I am not a very orderly person at times and I often find myself
i use svn and store my repository on a remote linux server, accessible via
I am a heavy command line user and use the find command extensively in
Quite often I find myself with bunch of R processes running in ESS buffers.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.