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

  • Home
  • SEARCH
  • 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 7437119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:20:57+00:00 2026-05-29T10:20:57+00:00

OS: FreeBSD 8.2, bash Hey guys, I’m stumped as to why I can’t grep

  • 0

OS: FreeBSD 8.2, bash

Hey guys,

I’m stumped as to why I can’t grep the the line with / partition from df:

/dev/amrd0s1a    1012974    452694     479244    49%    /

I want to be able to grep that line only, (other lines have slashes too) so I figured one of these would work:

df -m | grep -E '\<'/'\>' 

df -m | grep -E '\</\>' 

df -m | grep -E '\<"/"\>'

but neither of those work, I was wanting to do it this way so I could practice using the ‘\< \>’. I tried with out the -E as well.

Can this be done? What am I doing wrong?

Thanks in advance!

  • 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-05-29T10:20:58+00:00Added an answer on May 29, 2026 at 10:20 am

    The problem is that \< and \> are for word boundaries, but / is not a word character. Instead match the preceding whitespace and following EOL: [[:space:]]/$.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed PostgreSQL on my FreeBSD 8.2 box. How can I open the
I want to streamline my library on FreeBsd using PUID from MusicBrainz. I need
After moving my mod_perl site from Linux hosting to FreeBSD, I have this error
I'm trying to configure Apache 2.2 from ports (in FreeBSD). I've written my own
I have a website running on FreeBSD server. Users can visit this website and
I just installed nano from freebsd ports, but when I tried to launch it
difference between Linux kernel and UNIX kernel(such as FreeBSD) from programmer's point of view.
I have a FreeBSD box with Bash set up. I'm used to Debian Linux
In FreeBSD/Linux, the ICMPv4/v6 Redirect pkt can be received by the OS, but the
I have a bash code below under FreeBSD: tar -c file1 > file1.tar It

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.