|
From: | Herbert Alexander Faleiros |
Subject: | Re: [shell-script] Filtrar parte da linha |
Date: | Thu, 5 Oct 2006 17:10:09 -0300 |
User-agent: | KMail/1.9.4 |
> ${x#*\"} remove a final. Ops, é ${y%\"}. Enfim, é isso aqui: $ cat in UCD-SNMP-MIB::ucdavis.53.101.1 = STRING: "Thu Oct 5 16:04:24 BRT 2006" $ x=`cat in`; y=`echo ${x#*\"}`; echo ${y%\"} Thu Oct 5 16:04:24 BRT 2006
[Prev in Thread] | Current Thread | [Next in Thread] |