Saving files

Hi all,
I need to save my files at c, d or any drive location via script.

Requirement.
Say for example i have 10 files at location /usr/bi/ci location.
10 files naming

a.ksh
b,ksh
c.ksh and so on

I want to save the files and its content at some location (any drive on local computer)..How can this be achieve via script.

Now y iam asking this is because many time i have done rm * which is wrong but i have done this so wanted to backup these files and its content...

Regards,
Sam

Would it work to just copy them with cp -p ? If a rm did not do what you wanted, maybe a mv could be more close.

Sorry thats not the answer for my question..
I need a script to copy all the files and its contents from a any directory structure to a particular location at ur hard drive

Requirement is not clear. May be this is what you want?

#!/bin/ksh

srcdir=/usr/bi/ci
dstdir=/where/ever/you/want
cd $srcdir
for i in *
do
  cp $i $dstdir
done

what do you mean by saving the contents?

regards,
Ahamed

Do you have a card with the answer in your hand?

The easiest command to copy files is cp . When you copy a file, you always copy it's contents. Else it would not be copying but more like setting a link.
The command cp takes any local source and any destination as parameter.

So it answers your written question. Maybe rephrase your question.