RE: bash question
- From: Dario Lesca <d.lesca@xxxxxxxxxx>
- Date: Wed, 31 Oct 2007 14:36:12 +0100
Il giorno mer, 31/10/2007 alle 09.28 -0400, Miner, Jonathan W (CSC) (US
SSA) ha scritto:
By pipe'ing the commands together, you cause the while loop
to be executed in a subshell. Change your script to be:
done << _EOF_
a a a
b b b
c c c
_EOF_
echo $i
Thanks ... but my original script is someone like this:
ls dir/|
while read d
do
...
done
then I have change it so:
ls dir > /tmp/f.tmp
while read d
do
....
done < /tmp/f.tmp
rm -f /tmp/f.tmp
Now all work fine!
Thanks!!
--
Dario Lesca <d.lesca@xxxxxxxxxx>
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
- Follow-Ups:
- Re: bash question
- From: Jeff Voskamp
- Re: bash question
- References:
- bash question
- From: Dario Lesca
- RE: bash question
- From: Miner, Jonathan W (CSC) (US SSA)
- bash question
- Prev by Date: Re: RPM
- Next by Date: Re: RPM
- Previous by thread: RE: bash question
- Next by thread: Re: bash question
- Index(es):
Relevant Pages
|
|