LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-03-2009, 02:28 AM   #1
phanvinhgiap
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Rep: Reputation: 0
How to copy files after search in array from this directory to another directory!


Hi all,
After i try to find logfiles follow date/month/year. i want copy this files to another directory with name's directory is time you find(date/month/year). Could you help me write this program.
Thanks!
 
Old 01-03-2009, 04:36 AM   #2
amolgupta
Member
 
Registered: Feb 2005
Location: agra,india
Distribution: FC2
Posts: 158

Rep: Reputation: 30
use system call cp command
 
Old 01-03-2009, 07:17 AM   #3
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 59
What programming language are you using? What have you done so far? Is this your homework?
 
Old 01-04-2009, 06:41 PM   #4
phanvinhgiap
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks All,
My program write by C++. and this is not my home work. this is small application which i write for my owner.
 
Old 01-04-2009, 06:48 PM   #5
wje_lq
Member
 
Registered: Sep 2007
Location: Mariposa
Distribution: Debian lenny, Slackware 12
Posts: 809

Rep: Reputation: 178Reputation: 178
So let's see the code you have so far. Tell us which part of the code doesn't seem to be working as you wish. If you're stuck on how to do something, enter each of these commands at the shell prompt:
Code:
man gettimeofday
man localtime
man sprintf
man 3 system
man cp
man sscanf
These will be directed to C programmers, but they can be used by C++ programmers as well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you copy hidden files from one directory to another? Akhran Linux - Newbie 19 12-29-2011 03:31 AM
wxFileName +search all files in Directory bianchi Programming 1 12-27-2005 11:31 PM
copy 3 files to a directory and all subdirectories? snip128 Linux - Newbie 9 08-12-2005 09:18 PM
copy files from directory to directory without subfile ALInux Linux - General 2 06-03-2005 11:51 AM
search special files and copy in directory. abhi Linux - Newbie 2 04-10-2005 09:22 AM


All times are GMT -5. The time now is 04:12 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration