Skip to content

Update command_line.markdown : replace find by grep #40275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 5, 2025

Conversation

bil44
Copy link
Contributor

@bil44 bil44 commented Aug 4, 2025

command: 'netstat -na | find "33322" | find /c "LISTENING" > nul && (echo "Running") || (echo "Not running")'

find command cannot grep string:
# netstat -na | find  "4354"
find: 4354: No such file or directory
Example woks with grep command:
# netstat -na | grep  "4354" | grep -q  "LISTENING"  && (echo "Running") || (echo "Not running") Running

Proposed change

Type of change

  • Spelling, grammar or other readability improvements (current branch).
  • Adjusted missing or incorrect information in the current documentation (current branch).
  • Added documentation for a new integration I'm adding to Home Assistant (next branch).
  • Added documentation for a new feature I'm adding to Home Assistant (next branch).
  • Removed stale or deprecated documentation.

Additional information

  • Link to parent pull request in the codebase:
  • Link to parent pull request in the Brands repository:
  • This PR fixes or closes issue: fixes #

Checklist

  • This PR uses the correct branch, based on one of the following:
    • I made a change to the existing documentation and used the current branch.
    • I made a change that is related to an upcoming version of Home Assistant and used the next branch.
  • The documentation follows the Home Assistant documentation standards.

command: 'netstat -na | find "33322" | find /c "LISTENING" > nul && (echo "Running") || (echo "Not running")'

find command cannot grep string:
# netstat -na | find  "4354"
find: 4354: No such file or directory
Example woks with grep command:
# netstat -na | grep  "4354" | grep -q  "LISTENING"  && (echo "Running") || (echo "Not running")
Running
@bil44 bil44 requested a review from gjohansson-ST as a code owner August 4, 2025 15:36
@home-assistant home-assistant bot added the current This PR goes into the current branch label Aug 4, 2025
Copy link

netlify bot commented Aug 4, 2025

Deploy Preview for home-assistant-docs ready!

Name Link
🔨 Latest commit 3f4f0de
🔍 Latest deploy log https://app.netlify.com/projects/home-assistant-docs/deploys/6890d36733a0eb0008dabce4
😎 Deploy Preview https://deploy-preview-40275--home-assistant-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@frenck frenck merged commit 48360fb into home-assistant:current Aug 5, 2025
7 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
current This PR goes into the current branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants