Re: Bash problem with subshell and *

2006-12-13 Thread Andrea Ganduglia
On 12/13/06, Almut Behrens <[EMAIL PROTECTED]> wrote: > In other words subshell expand willcard `*' and shows all files into > directory! You need to put double quotes around the variable when echoing it: echo "$SUBJECT" Sure! Dummies error. Sorry. -- Openclose.it - Idee per il software libe

Re: Bash problem with subshell and *

2006-12-13 Thread Almut Behrens
On Wed, 13 Dec 2006 12:10:58 +0100, Andrea Ganduglia wrote: > Hi. I'm working on Sarge. I'm parsing a text file when.. > > cd tmp > ls > aaa bbb ccc ddd > > My script parse all file into directory, and grep ^Subject line. > > for i in *; do > egrep '^Subject:' $i > done > > Subject: Hello Andre

Bash problem with subshell and *

2006-12-13 Thread Andrea Ganduglia
Hi. I'm working on Sarge. I'm parsing a text file when.. cd tmp ls aaa bbb ccc ddd My script parse all file into directory, and grep ^Subject line. for i in *; do egrep '^Subject:' $i done Subject: Hello Andrea Subject: Ciao Debiam Subject: {SpAm?} * Viiagrra * Ciialiis * Leevittra * Subject: