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

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

Re: [shell-script] Re: Backup estrutura de diretórios


From: MrBiTs
Subject: Re: [shell-script] Re: Backup estrutura de diretórios
Date: Fri, 22 Oct 2010 09:16:43 -0200
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.11) Gecko/20101013 Lightning/1.0b2 Thunderbird/3.1.5

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


> Ainda não sei como colocar os links simbolicos no comando abaixo, mas a 
> criação da estrutura ele resolve, você entra no local onde vai criar a nova 
> estrutura e executa:
> 
> (cd /home/user/source/; find -type d -print0) | xargs -0 mkdir -p

Talvez colocar o -L no comando find ?

E por que você não faz simplesmente um

find /home/user/source -L -type d -exec mkdir -p {} \;

?


- -- 

LLAP

.0. MrBiTs - address@hidden
..0 GnuPG  - 
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6EC818FC2B3CA5AB
000 http://www.mrbits.com.br


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iQEcBAEBCAAGBQJMwXKbAAoJEG7IGPwrPKWr0DEH/iyhhATQ7eJWCh58vsIK9FxS
lsJdmJ4zuOVLGELvbsj8ezAn6DM/C//NYMQbiqshgFs5+w7k3AUpECAhQaHC/zNL
jZZqtRTPR707ttf76Blv7rKdRlaWHCgWS7Kay93qaZp6Ma3jZjtZIgUsIfjOfI+w
kK7YkauNOw77VDWHNl1IOedfn6Tituqi+CgE206xL3Ztl9uwIorZKrxFdDkOYsMi
KW8Ys39d/VKxiMcf8z1chg4PhKbeLN7g4FX9FUiU5OdMjT5HfGyfltUWpXiRe4d2
X9uOghJi+PVJmOKew3RDUqtla6QUhSoyfsfcLshc+ToWxtnx9BdfYT1kSirTPRA=
=BG5f
-----END PGP SIGNATURE-----


reply via email to

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