Re: I need grep . help

2024-09-11 Thread Patrick O'Callaghan
On Tue, 2024-09-10 at 14:40 -0400, Todd Zullinger wrote: > The rules are much more convoluted than that, of course. > Largely, that's by virtue of them being codified by what > shells have actually done rather than being designed > entirely up front before being implemented. Yes, I've often though

Re: I need grep . help

2024-09-10 Thread Todd Zullinger
Patrick O'Callaghan wrote: > On Mon, 2024-09-09 at 22:32 -0400, Jon LaBadie wrote: >> Double and single quotes seem equivalent here.  But note that inside >> single quotes the backslash is always literal, not special, while inside >> double quotes it depends on the character following the backslash

Re: I need grep . help

2024-09-10 Thread Patrick O'Callaghan
On Mon, 2024-09-09 at 22:32 -0400, Jon LaBadie wrote: > Double and single quotes seem equivalent here.  But note that inside > single quotes the backslash is always literal, not special, while inside > double quotes it depends on the character following the backslash.  If > it is a dollar sign ($),

Re: I need grep . help

2024-09-09 Thread Samuel Sieb
On 9/9/24 7:32 PM, Jon LaBadie wrote: On Mon, Sep 09, 2024 at 01:34:55PM -0600, home user via users wrote: On 9/9/24 11:35 AM, Samuel Sieb wrote: On 9/9/24 9:55 AM, home user via users wrote: On 9/8/24 8:36 PM, ToddAndMargo via users wrote: On 9/8/24 18:51, home user via users wrote: Are yo

Re: I need grep . help

2024-09-09 Thread Jon LaBadie
On Mon, Sep 09, 2024 at 01:34:55PM -0600, home user via users wrote: On 9/9/24 11:35 AM, Samuel Sieb wrote: On 9/9/24 9:55 AM, home user via users wrote: On 9/8/24 8:36 PM, ToddAndMargo via users wrote: On 9/8/24 18:51, home user via users wrote: Are you looking for "9.4.4" or "9.4.5"? Aw

Re: I need grep . help

2024-09-09 Thread William Oliver
On Mon, 2024-09-09 at 13:24 -0700, Samuel Sieb wrote: > On 9/9/24 1:01 PM, Bill Oliver wrote: > > > > The escape works only if you include everything in quotes, in my > > experience, e.g. > > Yes, which is why I put single quotes in my answer, although I see > that > double quotes work too.  The

Re: I need grep . help

2024-09-09 Thread Barry
> On 9 Sep 2024, at 21:02, Bill Oliver wrote: > > The escape works only if you include everything in quotes, in my > experience, e.g. Outside of quotes double up the \ like this 1\\.2\\.3 Barry -- ___ users mailing list -- users@lists.fedoraproject

Re: I need grep . help

2024-09-09 Thread Samuel Sieb
On 9/9/24 1:01 PM, Bill Oliver wrote: The escape works only if you include everything in quotes, in my experience, e.g. Yes, which is why I put single quotes in my answer, although I see that double quotes work too. The original question was already using quotes anyway. On Sun, 2024-09-0

Re: I need grep . help

2024-09-09 Thread Bill Oliver
The escape works only if you include everything in quotes, in my experience, e.g. cat jnk: 9.1.2 9n4n4 9.4.4 9.3.3 grep 9\.4\.4 jnk: 9n4n4 9.4.4 grep "9.4.4" jnk: 9n4n4 9.4.4 grep "9\.4\.4" jnk: 9.4.4 billo On Sun, 2024-09-08 at 18:13 -0700, Samuel Sieb wrote: > On 9/8/24 6:10 PM,

Re: I need grep . help

2024-09-09 Thread home user via users
On 9/9/24 11:35 AM, Samuel Sieb wrote: On 9/9/24 9:55 AM, home user via users wrote: On 9/8/24 8:36 PM, ToddAndMargo via users wrote: On 9/8/24 18:51, home user via users wrote: Are you looking for "9.4.4" or "9.4.5"? Aw poop!  yes 9.4.4 Still can't get it to work though Now I don't under

Re: I need grep . help

2024-09-09 Thread Samuel Sieb
On 9/9/24 9:55 AM, home user via users wrote: On 9/8/24 8:36 PM, ToddAndMargo via users wrote: On 9/8/24 18:51, home user via users wrote: Are you looking for "9.4.4" or "9.4.5"? Aw poop!  yes 9.4.4 Still can't get it to work though Now I don't understand! In "grep" with no command line o

Re: I need grep . help

2024-09-09 Thread Todd Zullinger
ToddAndMargo via users wrote: > Hi All, > > I am literally looking for "9.4.5" with grep. Grep thinks > I want the dots to be wild cards. What am I doing wrong? > > $ curl -L "https://sourceforge.net/projects/crystaldiskinfo/files/"; -o - | > grep -i '9.4.5' To take another tangent, the curl `

Re: I need grep . help

2024-09-09 Thread home user via users
On 9/8/24 8:36 PM, ToddAndMargo via users wrote: On 9/8/24 18:51, home user via users wrote: Are you looking for "9.4.4" or "9.4.5"? Aw poop!  yes 9.4.4 Still can't get it to work though Now I don't understand! In "grep" with no command line options (or at least no "-F" option) and no esc

Re: I need grep . help

2024-09-09 Thread Barry Scott
> On 9 Sep 2024, at 02:10, ToddAndMargo via users > wrote: > > I am literally looking for "9.4.5" with grep. Grep thinks > I want the dots to be wild cards. What am I doing wrong? grep is means g/re/p - global regex search and print, a command in "ed" I think. So its always a regex that yo

Re: I need grep . help

2024-09-08 Thread ToddAndMargo via users
On 9/8/24 23:04, Samuel Sieb wrote: And as you found, the problem was that you had the wrong number. Stinking typos. :'( -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org

Re: I need grep . help

2024-09-08 Thread Samuel Sieb
On 9/8/24 6:42 PM, ToddAndMargo via users wrote: On 9/8/24 18:28, Go Canes wrote: On Sun, Sep 8, 2024 at 9:10 PM ToddAndMargo via users wrote: I am literally looking for "9.4.5" with grep.  Grep thinks I want the dots to be wild cards.  What am I doing wrong? $ curl -L "https://sourceforge.ne

Re: I need grep . help

2024-09-08 Thread ToddAndMargo via users
On 9/8/24 19:03, Jonathan Billings wrote: On Sep 8, 2024, at 21:11, ToddAndMargo via users wrote: Hi All, I am literally looking for "9.4.5" with grep.  Grep thinks I want the dots to be wild cards.  What am I doing wrong? $ curl -L "https://sourceforge.net/projects/crystaldiskinfo/files/";

Re: I need grep . help

2024-09-08 Thread ToddAndMargo via users
On 9/8/24 18:51, home user via users wrote: Are you looking for "9.4.4" or "9.4.5"? Aw poop! yes 9.4.4 Still can't get it to work though -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fe

Re: I need grep . help

2024-09-08 Thread ToddAndMargo via users
On Sun, Sep 8, 2024 at 9:43 PM ToddAndMargo via users mailto:users@lists.fedoraproject.org>> wrote: On 9/8/24 18:28, Go Canes wrote: > On Sun, Sep 8, 2024 at 9:10 PM ToddAndMargo via users > mailto:users@lists.fedoraproject.org>> wrote: >> I am literally looking for "9.4.5"

Re: I need grep . help

2024-09-08 Thread Jonathan Billings
> On Sep 8, 2024, at 21:11, ToddAndMargo via users > wrote: > > Hi All, > > I am literally looking for "9.4.5" with grep. Grep thinks > I want the dots to be wild cards. What am I doing wrong? > > $ curl -L "https://sourceforge.net/projects/crystaldiskinfo/files/"; -o - | > grep -i '9.4.5'

Re: I need grep . help

2024-09-08 Thread home user via users
On 9/8/24 7:42 PM, ToddAndMargo via users wrote: On 9/8/24 18:28, Go Canes wrote: On Sun, Sep 8, 2024 at 9:10 PM ToddAndMargo via users Something is wrong.  Tried all those before posting. Verifying 9.4.4 exists: $ curl -L "https://sourceforge.net/projects/crystaldiskinfo/files/"; -o - | gr

Re: I need grep . help

2024-09-08 Thread Terry Polzin
grep -e rather than grep -i On Sun, Sep 8, 2024 at 9:43 PM ToddAndMargo via users < users@lists.fedoraproject.org> wrote: > On 9/8/24 18:28, Go Canes wrote: > > On Sun, Sep 8, 2024 at 9:10 PM ToddAndMargo via users > > wrote: > >> I am literally looking for "9.4.5" with grep. Grep thinks > >> I

Re: I need grep . help

2024-09-08 Thread ToddAndMargo via users
On 9/8/24 18:28, Go Canes wrote: On Sun, Sep 8, 2024 at 9:10 PM ToddAndMargo via users wrote: I am literally looking for "9.4.5" with grep. Grep thinks I want the dots to be wild cards. What am I doing wrong? $ curl -L "https://sourceforge.net/projects/crystaldiskinfo/files/"; -o - | grep -i

Re: I need grep . help

2024-09-08 Thread Go Canes
On Sun, Sep 8, 2024 at 9:10 PM ToddAndMargo via users wrote: > I am literally looking for "9.4.5" with grep. Grep thinks > I want the dots to be wild cards. What am I doing wrong? > > $ curl -L "https://sourceforge.net/projects/crystaldiskinfo/files/"; -o - > | grep -i '9.4.5' Option 1 - '-i' m

Re: I need grep . help

2024-09-08 Thread Samuel Sieb
On 9/8/24 6:10 PM, ToddAndMargo via users wrote: Hi All, I am literally looking for "9.4.5" with grep.  Grep thinks I want the dots to be wild cards.  What am I doing wrong? $ curl -L "https://sourceforge.net/projects/crystaldiskinfo/files/"; -o - | grep -i '9.4.5' "." matches any single cha