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

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

[no subject]



>From address@hidden Tue Jul 22 11:24:53 2008
Return-Path: <address@hidden>
X-Sender: address@hidden
X-Apparently-To: address@hidden
X-Received: (qmail 60121 invoked from network); 22 Jul 2008 18:24:52 -0000
X-Received: from unknown (66.218.67.97)
  by m55.grp.scd.yahoo.com with QMQP; 22 Jul 2008 18:24:52 -0000
X-Received: from unknown (HELO ug-out-1314.google.com) (66.249.92.172)
  by mta18.grp.scd.yahoo.com with SMTP; 22 Jul 2008 18:24:51 -0000
X-Received: by ug-out-1314.google.com with SMTP id e2so637258ugf.32
        for <address@hidden>; Tue, 22 Jul 2008 11:24:50 -0700 (PDT)
X-Received: by 10.103.131.18 with SMTP id i18mr3883495mun.116.1216751090469;
        Tue, 22 Jul 2008 11:24:50 -0700 (PDT)
X-Received: by 10.102.247.18 with HTTP; Tue, 22 Jul 2008 11:24:50 -0700 (PDT)
Message-ID: <address@hidden>
Date: Tue, 22 Jul 2008 15:24:50 -0300
To: address@hidden
In-Reply-To: <address@hidden>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
References: <address@hidden>
X-Originating-IP: 66.249.92.172
X-eGroups-Msg-Info: 1:12:0:0:0
From: "Tiago Barcellos Peczenyj" <address@hidden>
Subject: =?ISO-8859-1?Q?Re:_[shell-script]_D=FAvida_com_cut?=
X-Yahoo-Group-Post: member; u=204465305; 
y=3fUElXRAAU8Hv4hcL3lpXPMtljsUAM0N-6lq5qHWigWkL6BIpl8
X-Yahoo-Profile: grande_uosh

Vc pode usar isso:

$ echo "01234567890" | cut -c 5-
4567890



2008/7/22 Felipe <address@hidden>:
> Ol=E1 lista,
>
> Estou com um arquivo com o seguinte conteudo:
>
>>>> /sbin/iwgetid
>>>> /sbin/iwlist
>>>> /sbin/iwconfig
>>>> /sbin/iwspy
>>>> /sbin/iwevent
>>>> /sbin/ifrename
>>>> /sbin/iwpriv
>
> A d=FAvida =E9, quando uso o comando: cut -c 5-18, tenho a seguinte saida=
:
>
> /sbin/<STRING DE MAIS DE 80 MIL CARACTERES[...]>
> /sbin/iwlist
> /sbin/iwconfig
> /sbin/iwspy
> /sbin/iwevent
> /sbin/ifrename
> /sbin/iwpriv
>
> usualmente, o que eu realmente queria, era:
>
> imaginem que eu tivesse uma string de mais de 80 mil caracteres e n=E3o
> soubesse exatamente quantos caracteres ela possui, eu n=E3o poderia
> especificar exatamente no comando cut -c <intervalo>.
>
> o cut teria algo como: cut -c 5-@ (s=F3 exemplo, aonde @ e at=E9 o fim da
> linha) ???
> ou existiria algum caractere pra indicar o fim da linha ???
>
> Como eu poderia estar fazendo isso ?
>
> Grato.
>
>=20



--=20
Tiago B Peczenyj
Linux User #405772

http://peczenyj.blogspot.com/
"what does not kill us makes us stronger"


reply via email to

From: Unknown
[Prev in Thread] Current Thread [Next in Thread]