Re: substituing $1 one time but not the other
- From: Stephane CHAZELAS <this.address@xxxxxxxxxx>
- Date: Wed, 27 Sep 2006 19:31:11 +0100
2006-09-27, 18:44(+02), patrice:
Hello[...]
I want to get the name of a mail file using its message ID.
I 'm using :
grep '^Message-ID: <my id>$' myfolder/* | awk -F ':' '{print $1;}'
and it work fine.
now i want to put this line in a shell script with 2 params: myid and
myfolder
so :
grep '^Message-ID: <$1>$' $2/* | awk -F ':' '{print $1;}'
Looks like you want
grep -l "^Message-ID: <$1>\$" -- "$2"/*
--
Stéphane
.
- References:
- substituing $1 one time but not the other
- From: patrice
- substituing $1 one time but not the other
- Prev by Date: Re: substituing $1 one time but not the other
- Next by Date: Re: Terminal all jumbled
- Previous by thread: Re: substituing $1 one time but not the other
- Next by thread: Changing UnixID
- Index(es):