Computing.Net > Forums > Unix > What is wrong?

What is wrong?

Reply to Message Icon

Original Message
Name: Sun
Date: July 15, 2006 at 09:17:59 Pacific
Subject: What is wrong?
OS: Win-xp, Unix
CPU/Ram: --
Model/Manufacturer: --
Comment:

What is wrong in this:

$ for i in 'find /cygdrive/*/R/S/INFO2'; do cp /cygdrive/d/R/S/infocp $i; done

cp: target `/cygdrive/d/R/S/INFO2' is not a directory

Note: INFO2 and infocp are files


Thankx in advance


Report Offensive Message For Removal


Response Number 1
Name: ghostdog
Date: July 16, 2006 at 01:09:11 Pacific
Subject: What is wrong?
Reply: (edit)

check your quotes. it should be backquotes:
`find....` , not 'find....'


Report Offensive Follow Up For Removal

Response Number 2
Name: Sun
Date: July 16, 2006 at 09:46:59 Pacific
Subject: What is wrong?
Reply: (edit)

About the quotes you are right I corrected that, but it seems that what I did don't achieve what I want.I want to copy infocp file to INFO2 file. It produces:
$ for i in `find /cygdrive/*/R/S/INFO2'; do cp /cygdrive/d/R/S/infocp $i; done
>
>
>
I am beginner and don't know about this?
Need guide please


Thankx in advance


Report Offensive Follow Up For Removal

Response Number 3
Name: Sun
Date: July 16, 2006 at 09:55:47 Pacific
Subject: What is wrong?
Reply: (edit)

Soooooooorry
Thats fine know
:))

Thankx in advance


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: What is wrong?

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software