in reply to Re^2: Using pattern match
in thread Using pattern match

The shell is eating $1. Escape the dollar: \$1 or use single quotes on the command line.

Replies are listed 'Best First'.
Re^4: Using pattern match
by tceng (Novice) on Aug 10, 2007 at 13:57 UTC
    Hm,

    actually what I get is:
    You are: $1
    If I escape the dollar sign, I get:
    You are: \$1
    I am using Windows here, but I was asking myself if it will work when I read from file, for it's what I really need with the script.
    I'll have a go at it.
    Thanks!

    tceng