[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using $ in quotes with characters after it
From: |
Mike Frysinger |
Subject: |
Re: Using $ in quotes with characters after it |
Date: |
Sat, 24 Mar 2012 14:05:42 -0400 |
User-agent: |
KMail/1.13.7 (Linux/3.2.0; KDE/4.6.5; x86_64; ; ) |
On Friday 23 March 2012 20:52:49 Dan wrote:
> address@hidden:~$ grep '^abc.*$\?' testfile
> abc;klj?
> abcasdf
> address@hidden:~$ grep "^abc.*$\?" testfile
> abc;klj?
> abcasdf
> address@hidden:~$ grep ^abc.*$\? testfile
> address@hidden:~$
run `set -x` before these commands to see what exactly is being passed to
grep. the quoting/expansion rules of the shell are probably changing what
grep is actually seeing.
-mike
signature.asc
Description: This is a digitally signed message part.