Simple script

Thread Solved

Join Date: May 2009
Posts: 7
Reputation: giftalp is an unknown quantity at this point 
Solved Threads: 0
giftalp giftalp is offline Offline
Newbie Poster

Simple script

 
0
  #1
Jun 18th, 2009
I need write simple script,but I just started and don't know how to do this at all. And I need it before tomorrow.
This is what I need.
1) Create a directory FileData and place four files into the directory.
This part, I already did, but second still exist.
2) Implement a Linux script that creates a new directory called CopiedData and when then copies the four files from FileData into CopiedData.

Can anybody help me? And if you can put comments for me to understand.
Thank you
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 38
Reputation: msvinaykumar is an unknown quantity at this point 
Solved Threads: 2
msvinaykumar msvinaykumar is offline Offline
Light Poster

Re: Simple script

 
0
  #2
Jun 19th, 2009
Simple Dude just three line.. B4 running make sure that
two Dir ie FileData and CopiedData should be in same directory

#!/bin/sh
mkdir -p CopiedData
cp ./FileData/* ./CopiedData/
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 7
Reputation: giftalp is an unknown quantity at this point 
Solved Threads: 0
giftalp giftalp is offline Offline
Newbie Poster

Re: Simple script

 
0
  #3
Jun 19th, 2009
Originally Posted by msvinaykumar View Post
Simple Dude just three line.. B4 running make sure that
two Dir ie FileData and CopiedData should be in same directory

#!/bin/sh
mkdir -p CopiedData
cp ./FileData/* ./CopiedData/
Thank you very much
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 38
Reputation: msvinaykumar is an unknown quantity at this point 
Solved Threads: 2
msvinaykumar msvinaykumar is offline Offline
Light Poster

Re: Simple script

 
0
  #4
Jun 20th, 2009
U r welcome
Pls mark it 'Solved'
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC