[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bold and normal fonts appear reversed in openoffice

On Sat, May 15, 2004 at 06:31:18AM -0400, richard lyons wrote:
> BTW, why "grep '^ii.*'". WHat does the ".*" usefully add?


> and the single quotes?  I expected, and got, the same response with
> either or both omitted.

'*' is a metacharacter to the shell: if you'd happened to have any files
in the current directory whose names started with '^ii.' for whatever
reason, or if you had the shell option 'nullglob' set, then "grep ^ii.*"
would have gone wrong. You may feel this is unlikely, but it's good
style to quote metacharacters nonetheless.

There are no metacharacters in ^ii alone, so quoting there is

Colin Watson                                  [cjwatson@flatline.org.uk]

Reply to: