shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] redirecianamento de saída


From: Diego Bianchetti
Subject: Re: [shell-script] redirecianamento de saída
Date: Fri, 8 Aug 2003 10:07:11 -0300

Valeu Frederico!

O que estava tentando fazer era o seguinte:

bash-2.05b$ cat parser.sh 
#!/bin/bash
if delim=$(grep boundary= $1 | cut -d'"' -f2) 
then
        echo $delim
fi

Isso pq eu não queria jozar o valor para uma varialvel e depois testar ela:

bash-2.05b$ cat parser.sh 
#!/bin/bash
delim=`grep boundary= $1 | cut -d'"' -f2`
if [ -a "delim" ]
then
        echo $delim
fi

Acho que não consegui fazer vcs me enterder na primeira pergunta. Era só uma 
questão de otimização.

Obrigado.

-- 
+----------------------------------------------------------------+
| Diego Bianchetti - Lajeado/RS                                  |
| SOLIS - Cooperativa de Soluções Livres - www.solis.coop.br     |
| UNIVATES - Centro Universitário - www.univates.br              |
| GNU/Linux(Slackware) User 256604                               |
+----------------------------------------------------------------+


-- 
+----------------------------------------------------------------+
| Diego Bianchetti - Lajeado/RS                                  |
| SOLIS - Cooperativa de Soluções Livres - www.solis.coop.br     |
| UNIVATES - Centro Universitário - www.univates.br              |
| GNU/Linux(Slackware) User 256604                               |
+----------------------------------------------------------------+


reply via email to

[Prev in Thread] Current Thread [Next in Thread]