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 7830049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:03:23+00:00 2026-06-02T11:03:23+00:00

I’m trying to use grep to parse out a string property on the command

  • 0

I’m trying to use grep to parse out a string property on the command line. I’m getting the properties using:

jarrett@jarrett-g74s:~$ xinput --list-props "FSPPS/2 Sentelic FingerSensingPad"
Device 'FSPPS/2 Sentelic FingerSensingPad':
    Device Enabled (131):   0
    Coordinate Transformation Matrix (133): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Accel Profile (257): 0
    Device Accel Constant Deceleration (258):   1.000000
    Device Accel Adaptive Deceleration (259):   1.000000
    Device Accel Velocity Scaling (260):    10.000000
    Device Product ID (248):    2, 15
    Device Node (249):  "/dev/input/event9"
    Evdev Axis Inversion (261): 0, 0
    Evdev Axes Swap (263):  0
    Axis Labels (264):  "Rel X" (141), "Rel Y" (142)
    Button Labels (265):    "Button Left" (134), "Button Middle" (135), "Button Right" (136), "Button Wheel Up" (137), "Button Wheel Down" (138), "Button Horiz Wheel Left" (139), "Button Horiz Wheel Right" (140), "Button Unknown" (251), "Button Unknown" (251), "Button Forward" (254), "Button Back" (255), "Button Unknown" (251), "Button Unknown" (251), "Button Unknown" (251), "Button Unknown" (251)
    Evdev Middle Button Emulation (266):    0
    Evdev Middle Button Timeout (267):  50
    Evdev Third Button Emulation (268): 0
    Evdev Third Button Emulation Timeout (269): 1000
    Evdev Third Button Emulation Button (270):  3
    Evdev Third Button Emulation Threshold (271):   20
    Evdev Wheel Emulation (272):    0
    Evdev Wheel Emulation Axes (273):   0, 0, 4, 5
    Evdev Wheel Emulation Inertia (274):    10
    Evdev Wheel Emulation Timeout (275):    200
    Evdev Wheel Emulation Button (276): 4
    Evdev Drag Lock Buttons (277):  0

The property is Device Enabled. So, I use grep like so:

jarrett@jarrett-g74s:~$ xinput --list-props "FSPPS/2 Sentelic FingerSensingPad" | grep "Device Enabled (131):"
    Device Enabled (131):   0

Which works. However, I want to grep on the whole property string (including either the 0 or 1 at the end), so I try this:

jarrett@jarrett-g74s:~$ xinput --list-props "FSPPS/2 Sentelic FingerSensingPad" | grep "Device Enabled (131):*0"

However, that returns nothing. I put a *0, which I would have thought would cover any characters before the 0. Anyone have any idea why this won’t work? (I’m new to bash work, I’m actually running this in a bash script, but I’ve run it in the command line as well for testing and it still doesn’t work).

I appreciate any help!!

Cheers

  • 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-02T11:03:24+00:00Added an answer on June 2, 2026 at 11:03 am

    That would be correct for a shell glob, but not for a regex; .* matches any number of any character, although you might prefer " *" (without the quotes, which I put in only because the space wouldn’t be visible otherwise) for any number of spaces. What you have, :*0, would match zero or more colons immediately before a 0.

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

Sidebar

Related Questions

I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string

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.