erlug
[Top] [All Lists]

Re: [Erlug] bash

To: erlug@xxxxxxxxxxxxxx
Subject: Re: [Erlug] bash
From: Maurizio Lemmo - Tannoiser <tann@xxxxxxxxx>
Date: Sat, 13 Sep 2003 12:30:40 +0200
* sabato 13 settembre 2003, alle 12:14, Davide Spazian scrive:

> mi  stavo cimentando  nello  scrivere  un banale  script  in bash  per
> rinominare un  gruppo di file  nella maniera voluta. ho  un problemino
> però: ho fatto chiedere al prompt  di digitare la path,e vorrei che ci
> fosse quella bellissima  cosa che c'è in linux  quale il completamento
> automatico.mi spiego:è  possibile dire  al prompt la  path completando
> col tab?

usa read -e.

Da man bash:

-e     If  the standard input is coming from a ter­
       minal, readline (see READLINE above) is used
       to obtain the line.

cio` detto, cosa non ti piace di rename? Io lo trovo un po` piu` comodo.

-- 
                          Maurizio - Tannoiser - Lemmo
                 Founder Member of ERLUG http://erlug.linux.it
-------------------------------------------------------------------------------
BOFH excuse #115:

your keyboard's space bar is generating spurious keycodes.

<Prev in Thread] Current Thread [Next in Thread>