erlug
[Top] [All Lists]

Re: [Erlug] dubbio in bash (pipe e commenti)

To: erlug@xxxxxxxxxxxxxx
Subject: Re: [Erlug] dubbio in bash (pipe e commenti)
From: Francesco Gigli - Checco <jaramir@xxxxxxxx>
Date: Thu, 29 Apr 2004 00:45:52 +0200
Il 28 apr 2004, alle 11:55:25 +0200, Ivan Sergio Borgonovo ha scritto:
> Bash ha le funzioni, potrebbe aiutare.

cosi'?

- - - - -
LISTA="topolino.tar.gz
pippo.tar.gz
pluto.tar.gz
"

togli_tar_gz ()
{
    read line
    echo $line | sed -e 's/\.tar\.gz//'
}

for EL in $LISTA
  do
  echo $EL | togli_tar_gz | rev | rev
done
- - - - -

in effetti e' piu' chiaro di "eval $variabile" altri suggerimenti?

-- 
Francesco Gigli      mail&jabber: jaramir@xxxxxxxx      http://slack.it
             A)bort, R)etry, I)nfluence with large hammer.

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