From owner-freebsd-questions@FreeBSD.ORG Thu Apr 12 08:29:16 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8ED7016A409 for ; Thu, 12 Apr 2007 08:29:16 +0000 (UTC) (envelope-from asanjuan@bolsabilbao.es) Received: from correo-1.bolsabilbao.es (correo-1.bolsabilbao.es [212.8.77.215]) by mx1.freebsd.org (Postfix) with ESMTP id 1945113C4C6 for ; Thu, 12 Apr 2007 08:29:15 +0000 (UTC) (envelope-from asanjuan@bolsabilbao.es) Received: from correo_6.bolsabilbao.es ([10.33.5.206]) by correo-1.bolsabilbao.es with Microsoft SMTPSVC(6.0.3790.3959); Thu, 12 Apr 2007 10:29:14 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.3959 Date: Thu, 12 Apr 2007 10:28:54 +0200 Message-ID: <33E0F3313625E543ACCC41AE2DFD5EF5024280@BB06.bolsabilbao.local> In-Reply-To: <6.0.0.22.2.20070319061205.0253b728@mail.computinginnovations.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: sendmail name resolution Thread-Index: AcdqGIJ1qsL3g/UtSiqM2RCxsPxarQSwd3RQ From: "Aitor San Juan" To: "FreeBSD Mailing List" X-OriginalArrivalTime: 12 Apr 2007 08:29:14.0480 (UTC) FILETIME=[A74C6700:01C77CDC] Importance: normal Priority: normal X-ExchangeSecure-AntiSpam: valid(0) Subject: Shell scripting: Absolute path name of a file given as parameter X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Apr 2007 08:29:16 -0000 Hi List, Just a simple question. I have developed a shell script that, among other things, shows the = filename that was specified as a parameter. However, when I invoke the script and the file is located in the current = working directory, it just shows: ./my_input_filename I'd like the script to show the full path name of the input file. I = wonder whether there is or not an equivalent to %~f1 (Windows Batch file = programming). This parameter extension expands parameter %1 ($1 in shell scripting = jargon) to a Fully qualified path name. Any hint would be highly appreciated. Thanks in advance. Aitor. ************ LEGEZKO OHARRA / AVISO LEGAL / LEGAL ADVICE *************=20 Mezu honek isilpeko informazioa gorde dezake, edo jabea duena, edota = legez babestuta dagoena. Zuri zuzendua ez bada, bidali duenari esan eta = ezabatu, inori berbidali edo gorde gabe, legeak debekatzen duelako = mezuak erabiltzea baimenik gabe.=20 -------------------------------------------------------------------------= - Este mensaje puede contener informaci=F3n confidencial, en propiedad o = legalmente protegida. Si usted no es el destinatario, le rogamos lo = comunique al remitente y proceda a borrarlo, sin reenviarlo ni = conservarlo, ya que su uso no autorizado est=E1 prohibido legalmente. -------------------------------------------------------------------------= - This message may contain confidential, proprietary or legally privileged = information. If you are not the intended recipient of this message, = please notify it to the sender and delete without resending or backing = it, as it is legally prohibited. *************************************************************************= *