|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] correct way to do this in bash
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bob Schwier wrote:
> I swiped this thread because I have a BASH question. I'm using Ubantu
> 8.02 and I have a modest problem with BASH under SUDO. I'm trying to
> extract personal files from a hard drive that ran SUSE 7.0. I do not
> seem to be able to use wild cards to speed up the process. I seem to
> have to extract each file individually.
> bs
>
Have you read the cp man page?
- -a, --archive which is the same as -dpR
- -R redundant
- -p preserve
- -d same as --no-dereference --preserve=links
another option would be to use tar to make an archive of what you are
attempting to copy
tar -cvzPpf filename.tgz /mnt/old_dir/
read the tar man page.
The problem is not bash but the utilities you are using.
- --
Rev. LeRoy D. Cressy mailto:leroy@lrcressy.com /\_/\
http://lrcressy.com ( o.o )
Phone: 215-535-4037 > ^ <
Cell: 267-307-3527
gpg fingerprint: 62DE 6CAB CEE1 B1B3 359A 81D8 3FEF E6DA 8501 AFEA
For info on enigmail: http://lrcressy.com/linux/mozilla.pdf
For info on gpg: http://www.gnupg.org/
Jesus saith unto him, I am the way, the truth, and the life:
no man cometh unto the Father, but by me. (John 14:6)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQEVAwUBSr+W26uxGqN1iGbbAQKW7QgAnBUHJXMWBjJ9pQw4p4Xzp/NBpPmaKKz1
Jv0yurRQMPrc0DJSPHn6nwUzfbvtAoqsmGFnqqyUDMqYHiLMxEKgSb/ApvZ09+Jr
B0esB/DX7uRM5QbC+DgHTEQaeInZNKS0MdltFiewcRDz00MRWvQCtIjmPKlAUuQb
eJq/uymD0qNwLxSH0wTD2qyqhStxQq8ys4MUApIsDxqlwkTGMdGOVhY01N1k04jE
eyQCB9GfBBH7K713nVBfukK8SjRxOfgm0Nt5IidC98yQeNqepmK2lcR3CHg4Gh2U
yOYZsNfEpwYMDvuIsR32l8pgY5fW56n9yO1fXDCyPcYmnFd7Kehy6Q==
=qPlg
-----END PGP SIGNATURE-----
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|