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

Re: [bash] Find dentro a for



> Ovvero tronca il nome agli spazi, mentre se aggiungo le "virgolette" al
> find e lo faccio diventare cos? 
> ----------------------------------
> for i in "`find . -iname "*abc"`"; do
> ----------------------------------



export IFS=$'\n';

prima del for, cosi' cambi il separatore del for a solo \n, quindi non
ti tagliera' piu' sugli spazi.



-- 

Franco (nextime) Lanza
Busto Arsizio - Italy
SIP://casa@casa.nexlab.it

NO TCPA: http://www.no1984.org
you can download my public key at:
http://danex.nexlab.it/nextime.asc || Key Servers
Key ID = D6132D50
Key fingerprint = 66ED 5211 9D59 DA53 1DF7  4189 DFED F580 D613 2D50
-----------------------------------
echo 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D212153574F444E49572045535520454D20454B414D204F54204847554F4E452059415020544F4E4E4143205345544147204C4C4942snlbxq | dc
-----------------------------------

Attachment: signature.asc
Description: PGP signature


Reply to: