Re: awk & shell variables
From: Damian Ibbotson (member9705_at_dbforums.com)
Date: 07/31/03
- Next message: Stein Arne Storslett: "Re: pls need some guidance"
- Previous message: Tapani Tarvainen: "Re: sed translation"
- In reply to: Suhas: "awk & shell variables"
- Next in thread: erybak: "Re: awk & shell variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 31 Jul 2003 11:02:13 +0000
You can assign awk variables using the -v flag.
awk -v uid=${UID} -v dbdir=${DB_DIR} '$1==uid ...
-- Posted via http://dbforums.com
- Next message: Stein Arne Storslett: "Re: pls need some guidance"
- Previous message: Tapani Tarvainen: "Re: sed translation"
- In reply to: Suhas: "awk & shell variables"
- Next in thread: erybak: "Re: awk & shell variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]