Help - Search - Members - Calendar
Full Version: how to just copy the folder not the file
Linuxhelp > Support > Technical Support
ytyyutianyun
for example:


jizhen
parallel double cylinder
shuipingdanyuanzhu
shuzhidanyuanzhu
vertical double cylinder

./jizhen:
wujizhen

./jizhen/wujizhen:
171
80
xin129
xin80

./jizhen/wujizhen/171:
0000.txt
000100.txt
000101.txt
000102.txt
000103.txt
000104.txt
000105.txt
000106.txt
000107.txt
....



I only want to copy the "./*" not the "000*.txt"
thanks.
michaelk
I assume the answer on LinuxQuestions was sufficient.

rsync -av --include '*/' --exclude '*' /path/to/source /path/to/destination
ytyyutianyun
QUOTE (michaelk @ Nov 19 2011, 07:25 AM) *
I assume the answer on LinuxQuestions was sufficient.

rsync -av --include '*/' --exclude '*' /path/to/source /path/to/destination


thanks, I ask the same question in both sites because I am very anxious
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.