From owner-freebsd-questions@FreeBSD.ORG Fri Jan 7 16:36:37 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E88416A4CE for ; Fri, 7 Jan 2005 16:36:37 +0000 (GMT) Received: from fusion.vilot.net (vilot.com [64.246.32.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8BA543D1D for ; Fri, 7 Jan 2005 16:36:36 +0000 (GMT) (envelope-from tom@vilot.com) Received: from [192.168.1.105] (c-24-8-184-241.client.comcast.net [24.8.184.241]) (authenticated bits=0) by fusion.vilot.net (8.13.1/8.12.9) with ESMTP id j07GXXUQ081024 for ; Fri, 7 Jan 2005 10:33:33 -0600 (CST) (envelope-from tom@vilot.com) Message-ID: <41DEBA93.8060909@vilot.com> Date: Fri, 07 Jan 2005 09:36:35 -0700 From: Tom Vilot User-Agent: Mozilla Thunderbird 1.0 (X11/20041222) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: my lame attempt at a shell script... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 16:36:37 -0000 Eric F Crist wrote: > What is the point of the { } around some variables? It's not strictly necessary, except in some cases. i.e: m=34 echo $m You don't need it there. But you would want it here: f=/var/filename fname=${f//name/name2} It's when you need to differentiate the variable name from operations around it ... for want of a better explanation ....