Unix C++
Would you like to react to this message? Create an account in a few clicks or log in to continue.

copying file contents across directories

2 posters

Go down

copying file contents across directories Empty copying file contents across directories

Post by Preethi Wed Mar 03, 2010 4:11 pm

i came to know that to copy the file contents across directories we ve to specify the path and if we r at d destination directory then after giving the source path a space followed by '.' we ll be able to copy.....but what if there r more than one empty file?? in which file ll it get copied??

Preethi

Posts : 10
Points : 8
Join date : 2010-02-26

Back to top Go down

copying file contents across directories Empty Re: copying file contents across directories

Post by Christopher Wed Mar 03, 2010 4:43 pm

Instead of '.', give the new filename. File contents will be copied but with different filename.

eg:

$ cp ../sample/abc.txt def.txt
Christopher
Christopher
Admin

Posts : 240
Points : 429
Join date : 2010-02-26
Age : 35

https://unixcpp.forumotion.com

Back to top Go down

copying file contents across directories Empty its working!!

Post by Preethi Wed Mar 03, 2010 4:55 pm

hey thanks...its working!!

Preethi

Posts : 10
Points : 8
Join date : 2010-02-26

Back to top Go down

copying file contents across directories Empty Re: copying file contents across directories

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum