SCIENTIFIC-LINUX-USERS Archives

November 2006

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender:
Mailling list for Scientific Linux users worldwide <[log in to unmask]>
Date:
Wed, 29 Nov 2006 13:33:46 -0600
MIME-version:
1.0
Reply-To:
Miles O'Neal <[log in to unmask]>
Content-type:
text/plain; charset=us-ascii
Subject:
From:
Miles O'Neal <[log in to unmask]>
In-Reply-To:
<001901c713e8$a9136730$0901a8c0@TShirtLap>
Content-transfer-encoding:
7BIT
Comments:
To: Manuel Mussini <[log in to unmask]> cc: [log in to unmask]
Parts/Attachments:
text/plain (19 lines)
Manuel Mussini said...
|
|Does anybody know why this sequence does not work (under bash on SLF3.0.5)?
|
|ext="log"
|files=`find . -name '*.${ext}' -print`
|echo $files
|
|I think that the syntax is correct! Isn't it?

No.

The single quotes around the file name keeps
${ext} from expanding.  Usesingle quotes:

   files=`find . -name "*.${ext}" -print`

-Miles

ATOM RSS1 RSS2