[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Procura em nome de arquivo
From: |
Leandro Valiengo |
Subject: |
Re: [shell-script] Procura em nome de arquivo |
Date: |
Fri, 29 Jul 2016 18:16:09 +0000 (UTC) |
Oi pessoal,
boa tarde.
Deixa eu explicar melhor....
Terei arquivos:
BLA.REC.APL.TTTT.R01
BLA.TTT.S02
BLA.RRS.TET.RRR.R03
A unica coisa constante sao os 3 ultimos caracteres. Serão sempre R ou S e dois
digitos numericos 01, 02, 09.....Por isso peço para procurar de tras para
frente....pois a unica certeza que tenho é que os tres ultimos caracteres será
sempre .R01 ou .R34 ou .S09...
abs,
--------------------------------------------
Em sex, 29/7/16, address@hidden [shell-script] <address@hidden> escreveu:
Assunto: Re: [shell-script] Procura em nome de arquivo
Para: address@hidden
Data: Sexta-feira, 29 de Julho de 2016, 12:06
Olá Ultimo, pelo que entendi a pesquisa é pelos
nomes dos arquivos.
Pode ser com find
find /caminho -name '*.[RS]*'
é bem genérico mas vc pode especificar mais, por exemplo
se a extensão for
sempre R ou S seguido de dois números
'*.[RS][0-9][0-9]'
Abraços Paulo
On 29-07-2016 09:48, 'Ultimo de Miranda'
address@hidden [shell-script] wrote:
>
>
> Não entendi muito bem a questão mas quem sabe isso te
dá alguma ideia ...
>
> [miranda@guitar Mixtureba]$ cat x
> BLABLABLA.R01
> BLABLABLA.S03
> [miranda@guitar Mixtureba]$ awk -F"."
'{A=substr($2,1,1);print A}' x
> R
> S
>
>
>
>
> Em 29/07/2016 08:31:59, leandro_valiengo
address@hidden [shell-script] escreveu:
>
>
>
> Pessoal,
>
> Bom dia.
>
> Tenho 2 tipos de arquivos com os seguintes
nomes:
>
> BLABLABLA.R01
> BLABLABLA.S03
>
> Como eu localizo pela letra R ou S da terceira
posicao de tras para frente?
>
> Abs
>
>
>
> Enviado do meu smartphone Samsung Galaxy.
>
>
>
#yiv4772063443 #yiv4772063443 --
#yiv4772063443ygrp-mkp {
border:1px solid #d8d8d8;font-family:Arial;margin:10px
0;padding:0 10px;}
#yiv4772063443 #yiv4772063443ygrp-mkp hr {
border:1px solid #d8d8d8;}
#yiv4772063443 #yiv4772063443ygrp-mkp #yiv4772063443hd {
color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px
0;}
#yiv4772063443 #yiv4772063443ygrp-mkp #yiv4772063443ads {
margin-bottom:10px;}
#yiv4772063443 #yiv4772063443ygrp-mkp .yiv4772063443ad {
padding:0 0;}
#yiv4772063443 #yiv4772063443ygrp-mkp .yiv4772063443ad p {
margin:0;}
#yiv4772063443 #yiv4772063443ygrp-mkp .yiv4772063443ad a {
color:#0000ff;text-decoration:none;}
#yiv4772063443 #yiv4772063443ygrp-sponsor
#yiv4772063443ygrp-lc {
font-family:Arial;}
#yiv4772063443 #yiv4772063443ygrp-sponsor
#yiv4772063443ygrp-lc #yiv4772063443hd {
margin:10px
0px;font-weight:700;font-size:78%;line-height:122%;}
#yiv4772063443 #yiv4772063443ygrp-sponsor
#yiv4772063443ygrp-lc .yiv4772063443ad {
margin-bottom:10px;padding:0 0;}
#yiv4772063443 #yiv4772063443actions {
font-family:Verdana;font-size:11px;padding:10px 0;}
#yiv4772063443 #yiv4772063443activity {
background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}
#yiv4772063443 #yiv4772063443activity span {
font-weight:700;}
#yiv4772063443 #yiv4772063443activity span:first-child {
text-transform:uppercase;}
#yiv4772063443 #yiv4772063443activity span a {
color:#5085b6;text-decoration:none;}
#yiv4772063443 #yiv4772063443activity span span {
color:#ff7900;}
#yiv4772063443 #yiv4772063443activity span
.yiv4772063443underline {
text-decoration:underline;}
#yiv4772063443 .yiv4772063443attach {
clear:both;display:table;font-family:Arial;font-size:12px;padding:10px
0;width:400px;}
#yiv4772063443 .yiv4772063443attach div a {
text-decoration:none;}
#yiv4772063443 .yiv4772063443attach img {
border:none;padding-right:5px;}
#yiv4772063443 .yiv4772063443attach label {
display:block;margin-bottom:5px;}
#yiv4772063443 .yiv4772063443attach label a {
text-decoration:none;}
#yiv4772063443 blockquote {
margin:0 0 0 4px;}
#yiv4772063443 .yiv4772063443bold {
font-family:Arial;font-size:13px;font-weight:700;}
#yiv4772063443 .yiv4772063443bold a {
text-decoration:none;}
#yiv4772063443 dd.yiv4772063443last p a {
font-family:Verdana;font-weight:700;}
#yiv4772063443 dd.yiv4772063443last p span {
margin-right:10px;font-family:Verdana;font-weight:700;}
#yiv4772063443 dd.yiv4772063443last p
span.yiv4772063443yshortcuts {
margin-right:0;}
#yiv4772063443 div.yiv4772063443attach-table div div a {
text-decoration:none;}
#yiv4772063443 div.yiv4772063443attach-table {
width:400px;}
#yiv4772063443 div.yiv4772063443file-title a, #yiv4772063443
div.yiv4772063443file-title a:active, #yiv4772063443
div.yiv4772063443file-title a:hover, #yiv4772063443
div.yiv4772063443file-title a:visited {
text-decoration:none;}
#yiv4772063443 div.yiv4772063443photo-title a,
#yiv4772063443 div.yiv4772063443photo-title a:active,
#yiv4772063443 div.yiv4772063443photo-title a:hover,
#yiv4772063443 div.yiv4772063443photo-title a:visited {
text-decoration:none;}
#yiv4772063443 div#yiv4772063443ygrp-mlmsg
#yiv4772063443ygrp-msg p a span.yiv4772063443yshortcuts {
font-family:Verdana;font-size:10px;font-weight:normal;}
#yiv4772063443 .yiv4772063443green {
color:#628c2a;}
#yiv4772063443 .yiv4772063443MsoNormal {
margin:0 0 0 0;}
#yiv4772063443 o {
font-size:0;}
#yiv4772063443 #yiv4772063443photos div {
float:left;width:72px;}
#yiv4772063443 #yiv4772063443photos div div {
border:1px solid
#666666;min-height:62px;overflow:hidden;width:62px;}
#yiv4772063443 #yiv4772063443photos div label {
color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}
#yiv4772063443 #yiv4772063443reco-category {
font-size:77%;}
#yiv4772063443 #yiv4772063443reco-desc {
font-size:77%;}
#yiv4772063443 .yiv4772063443replbq {
margin:4px;}
#yiv4772063443 #yiv4772063443ygrp-actbar div a:first-child {
margin-right:2px;padding-right:5px;}
#yiv4772063443 #yiv4772063443ygrp-mlmsg {
font-size:13px;font-family:Arial, helvetica, clean,
sans-serif;}
#yiv4772063443 #yiv4772063443ygrp-mlmsg table {
font-size:inherit;font:100%;}
#yiv4772063443 #yiv4772063443ygrp-mlmsg select,
#yiv4772063443 input, #yiv4772063443 textarea {
font:99% Arial, Helvetica, clean, sans-serif;}
#yiv4772063443 #yiv4772063443ygrp-mlmsg pre, #yiv4772063443
code {
font:115% monospace;}
#yiv4772063443 #yiv4772063443ygrp-mlmsg * {
line-height:1.22em;}
#yiv4772063443 #yiv4772063443ygrp-mlmsg #yiv4772063443logo {
padding-bottom:10px;}
#yiv4772063443 #yiv4772063443ygrp-msg p a {
font-family:Verdana;}
#yiv4772063443 #yiv4772063443ygrp-msg
p#yiv4772063443attach-count span {
color:#1E66AE;font-weight:700;}
#yiv4772063443 #yiv4772063443ygrp-reco
#yiv4772063443reco-head {
color:#ff7900;font-weight:700;}
#yiv4772063443 #yiv4772063443ygrp-reco {
margin-bottom:20px;padding:0px;}
#yiv4772063443 #yiv4772063443ygrp-sponsor #yiv4772063443ov
li a {
font-size:130%;text-decoration:none;}
#yiv4772063443 #yiv4772063443ygrp-sponsor #yiv4772063443ov
li {
font-size:77%;list-style-type:square;padding:6px 0;}
#yiv4772063443 #yiv4772063443ygrp-sponsor #yiv4772063443ov
ul {
margin:0;padding:0 0 0 8px;}
#yiv4772063443 #yiv4772063443ygrp-text {
font-family:Georgia;}
#yiv4772063443 #yiv4772063443ygrp-text p {
margin:0 0 1em 0;}
#yiv4772063443 #yiv4772063443ygrp-text tt {
font-size:120%;}
#yiv4772063443 #yiv4772063443ygrp-vital ul li:last-child {
border-right:none !important;
}
#yiv4772063443
From address@hidden Fri Jul 29 18:37:16 2016
Return-Path: <address@hidden>
Received: (qmail 31299 invoked by uid 102); 30 Jul 2016 01:37:16 -0000
Received: from unknown (HELO mtaq5.grp.bf1.yahoo.com) (10.193.84.36)
by m13.grp.bf1.yahoo.com with SMTP; 30 Jul 2016 01:37:16 -0000
Received: (qmail 9728 invoked from network); 30 Jul 2016 01:37:16 -0000
Received: from unknown (HELO mta1006.groups.mail.bf1.yahoo.com) (98.139.245.165)
by mtaq5.grp.bf1.yahoo.com with SMTP; 30 Jul 2016 01:37:16 -0000
X-Original-Return-Path: <address@hidden>
Received-SPF: softfail (transitioning domain of gmail.com does not designate
72.30.234.88 as permitted sender)
X-Rocket-Track: cat=UK;
info�onsam:UK;cip_features:UK;ip:NN<ipr.30.234.88,policy=n-w0,n100,g0,s>;cmsgbl:UK<s6,m=2>;cmsgbk:UK<s6,m=4>;csubbl:UK;url2db:NN<url=yahoogrupos.com.br,pri5>;sgor:UK;abaca:UK<1006,
fh=mta1006; fi�.139.172.202:14050; rg=U; GT=1; fs06; nsV;
wsC,A,15,-120,48,100,0,0,-60,0,0,0,0,60,N; nn=1,48,8,0,0,0;
cn"1,73,7,5,172,-4113,0,64,0,0; ex=E,b,0000,FILMQRTUV; sk=MNBIOdBTuOD;
yd=5,5,0,-1; st�S; id=UwpA_Mb7-6U0137G.;
rv=.push+0-gb27ffd8/98.139.172.202:14051; ts=O0aln; gv(0; fp=QOxkg; or�A;
os=P/////////E; gd=1; fl�ANAA; ipr.30.234.88; pof.196.81.176; ht=1; co=n; hv=1;
td=1; al=1; ha=MX+/k6wKSRY; hs=FjUuA1sv04s; ho=EYI1Yf0W6LN; hd=MX+/k6wKSRY;
hf=B/eK2Eh4e/j; hF=FTJYWj8HDXx; hj=KuGrrcI8B1+; hr=B/eK2Eh4e/j; gt=1;
sd=PGYheCDlwy0,1:0,30,1:0,30,0,0,1,1,1,0,w,w; dm=GKkDsl7lJgP,1; ZM=PoSScCm7VWW;
ZB=KZj8P55UBU5; ZB=GqLMxeBjZ4H; ZB=OapcO9oCr4t; ZB=D/1tlPo0RV9; ZB=LStvpfTl8nL;
ZM=GMjVFV3CWy2; ZM=GCAQvB7hVRd; ZM=C/2+EEiPCch; ZF=CGq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sywktf4qe_WcFB4Ukz
GGuCbXEBHs3MxII4ZskB6NaXVCyAeKxVtaS2aLJr.0sTOaVxufBC8Fl.HEqQ
DBKl2PzbvekV7Y84PJLFOywgKl1IcfxzQ8UQqh2AQJPzIx41zOMqIyglSN_N
CkfsWkDGF3DqY96Io9HirYCTr4kfKzM207bgV5bt0yAUhsmFomK.eOpXONYN
KS7_DS9uz7BSIYOTF_ZGefa4paHO99IHunjJhvWt.XPw6_Ie5z.UsH86Jqk6
K8hTYeG_hSZ9uV4ZcCXvpGo2C5QQ_GBnLXXh5y_Wpl3ZG2s9La1RxTnlletp
MyjDgsk74RyzTrG5XGnxwwoeFxSj0CXG19MSvUnt6HGQTE2EbwoDqQDJuev4
kEL.HuNwzUMITVyNH73wtnLIOrIPQiciCkH6i0wYfZPKiqne49JUsCWci75H
H0.NLhmYx6u6xZLl18GNcoC9MAvNfVo_QKZagjSVflaAsZfyKOvWkBcnHJ0V
OVag.pY1lJDQC.UbSrGIr2.0unsZKorGSQCWfcxmWseEjXoxqOtwMJugnFl3
mhZDj9CLI6GLdM5ZbdCgwkVDtfAgfv5GjGWBup5udqUgDkGuxTVwdu8kBiu_
Gac_EFwz5dtRO_8UjVziiLgvXgDOaAvnq.otOEAwyeGf0nAF3cXHamPG7N79
ICnFfLZ6GqBaCdDZ_YsjJlOJX2Y_lv5zZ3y9MtO7O.yrnq0BXD.woig82jIR
GPaRRXmDXiHfTOn.k4sThhtaOGVMddgNdlYCQz5WRirom7ucLmc0JTOZC7TC
TrUDxBd4aJDFBuVnOgZNSMmef3qDW.mGHiQ9f9sbXA8De3haD03ftcBt8OFd
YGwTeev9wgJzzxTgSShQHmIB0p3NR5pAN8GfKvmsag411w06Ppod.tPwCAPr
Trxqw_9suWmoomp6Ww--
X-RocketHELO: n8-vm0.bullet.mail.bf1.yahoo.com
X-RocketMAILFROM: address@hidden
X-RocketRCPTTO: address@hidden
X-RocketMSGID:address@hidden#0
X-Originating-IP: [72.30.234.88]
Authentication-Results: mta1006.groups.mail.bf1.yahoo.com
from=yahoogrupos.com.br; domainkeys=neutral (no sig); from=yahoogrupos.com.br;
dkim=pass (ok)
Received: from 127.0.0.1 (EHLO n8-vm0.bullet.mail.bf1.yahoo.com) (72.30.234.88)
by mta1006.groups.mail.bf1.yahoo.com with SMTPS; Sat, 30 Jul 2016 01:37:16
+0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoogrupos.com.br;
s=indiai; t69842635; bh=RDc5jE0xLRj0O35SZKDzbosXKVf1oy+GlAbJMuJmHRk=;
h=In-Reply-To:References:Date:Subject:From:Reply-To:To:From:Subject;
b=iSmlXa8H7z1sqSonlBTgO7MvFAjFgXJTg5AHhcaef6+UucjvklbelqVHfAKxT2fwefcMwfNanHCdzMEoJVboUX1zhKddI5Ozo9s4qSVFsFzKzvPph4EKA4Toa52snv7lbwH6oTMyae024QoDmSjtzpKd416uiLLcy4LSSip4cCoReceived:
from [66.196.81.176] by n8.bullet.mail.bf1.yahoo.com with NNFMP; 30 Jul 2016
01:37:15 -0000
Received: from [10.193.242.232] by t6.bullet.mail.bf1.yahoo.com with NNFMP; 30
Jul 2016 01:37:15 -0000
Received: from [127.0.0.1] by gapi1.grp.bf1.yahoo.com with NNFMP; 30 Jul 2016
01:37:15 -0000
X-Sender: address@hidden
X-Apparently-To: address@hidden
X-Received: (qmail 12362 invoked by uid 102); 29 Jul 2016 13:38:29 -0000
X-Received: from unknown (HELO mtaq6.grp.bf1.yahoo.com) (10.193.84.37)
by m10.grp.bf1.yahoo.com with SMTP; 29 Jul 2016 13:38:29 -0000
X-Received: (qmail 22740 invoked from network); 29 Jul 2016 13:38:29 -0000
X-Received: from unknown (HELO mta1003.groups.mail.bf1.yahoo.com)
(98.139.170.167)
by mtaq6.grp.bf1.yahoo.com with SMTP; 29 Jul 2016 13:38:29 -0000
X-Original-Return-Path: <address@hidden>
X-Received-SPF: pass (domain of gmail.com designates 209.85.220.174 as
permitted sender)
X-YMailISG: e5kBb30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xEQTAsKy98XyZ4LrHVTEfO_qLFt4q.uyyVL64fFrydZuyDqFmu8L
Vew8sp6LHCVqBFnSLRS.fSi4vbvvQTgv2xiHfYgjoRbSALNaJmavpjA3zETs
UCZFHvvhsBAfNFEBsax.ufRP3w4yXRAiikOSGJHZSf10cVMJCrHKoDOoMH0b
tcSKiZzHYTPAmO_Ecm8evtjySRLX
Authentication-Results: mta1003.groups.mail.bf1.yahoo.com from=gmail.com;
domainkeys=neutral (no sig); from=gmail.com; dkim=pass (ok)
X-Received: from 127.0.0.1 (EHLO mail-qk0-f174.google.com) (209.85.220.174)
by mta1003.groups.mail.bf1.yahoo.com with SMTPS; Fri, 29 Jul 2016 13:38:29
+0000
X-Received: by mail-qk0-f174.google.com with SMTP id o67so90748855qke.1
for <address@hidden>; Fri, 29 Jul 2016 06:38:29 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d100.net; s 130820;
h=x-gm-message-state:mime-version:in-reply-to:references:from:date
:message-id:subject:to;
bh=tlFYePbdotxYhwXGKoHcelNhVCkHnkV4ZUVO+21Wycs=;
b=JQ2tKnHsMtwOYHbnJ25IaGD4ojenUtGkYe0Qy3Y3gO1QM170ZVGbEj5+fszgasG4+/
AG6KHLzvnDyGFQqvYlF69UINGkSnwELwC+L+JsQdmM/ir4/aFTn1zwRz4IPxQVrXk3dn
owIcYb55cJNzjY7cGnQySvJTwIQNr96NQAl2heNOP8wwLMs8Iq3gMvNlSTZQonHfH7zg
r2Ju54ensV9zVTw1Md5oMQ9GwgkCCmHURvAVVV2pWSWf7MgIBrYiIIpV+yPzbpdT2eLc
U6i/a5B2OS3+poJ+p8wLFE7504zQhFZY/qY8WywkUa/1zf1a2oxpydlS6sSdBh33G6lW
p+8w=X-Gm-Message-State:
AEkoouv9VJevhC2EeISpX7kBvXy1p6h2mai0YRtgGZTFvVnGfa7Vm/hV+zLY+4O2TRmupz5VpeVSr2tj8i5Log=X-Received:
by 10.55.113.197 with SMTP id m188mr47799431qkc.90.1469799509130;
Fri, 29 Jul 2016 06:38:29 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.200.36.118 with HTTP; Fri, 29 Jul 2016 06:38:28 -0700 (PDT)
In-Reply-To: <address@hidden>
References: <address@hidden>
<address@hidden> <address@hidden>
Date: Fri, 29 Jul 2016 10:38:28 -0300
Message-ID: <address@hidden>
Content-Type: multipart/alternative; boundary�eb2c05a878a205e10538c65d39
X-Originating-IP: 98.139.170.167
Subject: Re: [shell-script] Procura em nome de arquivo
X-Yahoo-Group-Post: member; uU9741118;
y=mClBLu8-mSTgRXlyMqTFg1nKdPWidfuJDN4FJyfNFdcezEMThfh5U9sIK0SS5tkgcHNP--x3dALWYm0
X-Yahoo-Profile: salusvictor
X-Original-From: Victor Salustrino Bezerra <address@hidden>
Reply-To: Victor Salustrino Bezerra <address@hidden>
X-Original-Return-Path: Victor Salustrino Bezerra <address@hidden>
To: address@hidden
X-Yahoo-Newman-Property: groups-system
X-Yahoo-Newman-Id: groups-system
X-eGroups-Approved-By: julioneves99 via web; 29 Jul 2016 18:37:15 -0000
From: Victor Salustrino Bezerra <address@hidden>
--94eb2c05a878a205e10538c65d39
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
Desculpe, fiz na pressa e me equivoquei. Corrigindo o comando seria:
find . -name "*.[RS]??"
Em 29 de julho de 2016 10:33, Victor Salustrino Bezerra <
address@hidden> escreveu:
> Será que isso não resolve?
>
> find *.[RS]*
>
> Em 29 de julho de 2016 09:48, 'Ultimo de Miranda' address@hidden
> [shell-script] <address@hidden> escreveu:
>
>>
>>
>> Não entendi muito bem a questão mas quem sabe isso te dá alguma ideia ...
>>
>> [miranda@guitar Mixtureba]$ cat x
>> BLABLABLA.R01
>> BLABLABLA.S03
>> [miranda@guitar Mixtureba]$ awk -F"." '{A=substr($2,1,1);print A}' x
>> R
>> S
>>
>>
>>
>>
>> Em 29/07/2016 08:31:59, leandro_valiengo address@hidden
>> [shell-script] escreveu:
>>
>>
>>
>> Pessoal,
>>
>> Bom dia.
>>
>> Tenho 2 tipos de arquivos com os seguintes nomes:
>>
>> BLABLABLA.R01
>> BLABLABLA.S03
>>
>> Como eu localizo pela letra R ou S da terceira posicao de tras para
>> frente?
>>
>> Abs
>>
>>
>>
>> Enviado do meu smartphone Samsung Galaxy.
>>
>>
>>
>>
>
>
>
> --
> Victor Salustrino Bezerra
>
--
Victor Salustrino Bezerra
--94eb2c05a878a205e10538c65d39
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="UTF-8"
<div dir="ltr">Desculpe, fiz na pressa e me equivoquei. Corrigindo o comando
seria:<br>find . -name "*.[RS]??"<br><br></div><div
class="gmail_extra"><br><div class="gmail_quote">Em 29 de julho de 2016 10:33,
Victor Salustrino Bezerra <span dir="ltr"><<a href="mailto:address@hidden"
target="_blank">address@hidden</a>></span> escreveu:<br><blockquote
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex"><div dir="ltr">Será que isso não resolve?<br><br>find
*.[RS]*<br></div><div class="gmail_extra"><div><div class="h5"><br><div
class="gmail_quote">Em 29 de julho de 2016 09:48, 'Ultimo de Miranda'
<a href="mailto:address@hidden" target="_blank">address@hidden</a>
[shell-script] <span dir="ltr"><<a href="mailto:address@hidden"
target="_blank">address@hidden</a>></span> escreveu:<br><blockquote
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<u></u>
<div style="background-color:#fff">
<span> </span>
<div>
<div>
<div>
<p>Não entendi muito bem a questão mas quem sabe isso te dá alguma ideia
...<br><br>[miranda@guitar Mixtureba]$ cat
x<br>BLABLABLA.R01<br>BLABLABLA.S03<br>[miranda@guitar Mixtureba]$ awk
-F"." '{A=substr($2,1,1);print A}'
x<br>R<br>S<span><br><br><br><br><br>Em 29/07/2016 08:31:59, leandro_valiengo
<a href="mailto:address@hidden" target="_blank">address@hidden</a>
[shell-script] escreveu:<br></span></p><blockquote>
<span> </span>
<div>
<p></p><div>Pessoal, </div><div><br></div><div>Bom
dia.</div><div><br></div><div>Tenho 2 tipos de arquivos com os seguintes
nomes:</div><div><br></div><div>BLABLABLA.R01</div><div>BLABLABLA.S03</div><div><br></div><div>Como
eu localizo pela letra R ou S da terceira posicao de tras para frente?
</div><div><br></div><div>Abs</div><div><br></div><div><br></div><div><br></div><div><div
style="font-size:85%;color:#575757">Enviado do meu smartphone Samsung
Galaxy.</div></div><p></p>
</div>
</blockquote><br>
<p></p>
</div>
<div style="color:#fff;min-height:0"></div>
</div>
</blockquote></div><br><br clear="all"><br></div></div><span
class="HOEnZb"><font color="#888888">-- <br><div
data-smartmail="gmail_signature">Victor Salustrino Bezerra</div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"
data-smartmail="gmail_signature">Victor Salustrino Bezerra</div>
</div>
--94eb2c05a878a205e10538c65d39--
- Re: [shell-script] Procura em nome de arquivo,
Leandro Valiengo <=