linux user group brescia

immagine del castello

Archivio della mailing list

Un super alias

Gabriele Villi gvilli a iol.it
Gio 27 Mar 2003 12:09:11 UTC
Alle 10:58, giovedì 27 marzo 2003, Vernia Damiano ha scritto:

>
> che fa esattamente la stessa cosa. E' possibile secondo voi con un alias
> bash o bisogna proprio passare per uno scriptino?

da man bash, sezione ALIASES
       There is no mechanism for using arguments in the replacement  text.   
If  arguments
       are needed, a shell function should be used (see FUNCTIONS below).

in soldoni si tratta di mettere in .profile o in .bashrc (o in altro file da 
caricare esplicitamente con . nomefile)

function estrai() {
        tar -xf ~/Articoli.tar `sqlite ~/tesi/refs.db "select nome from file 
where ref='$1';"`
}


ciao
gv






Maggiori informazioni sulla lista Lug