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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

What is wrong?

Reply to Message Icon

Name: Sun
Date: July 15, 2006 at 09:17:59 Pacific
OS: Win-xp, Unix
CPU/Ram: --
Product: --
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



Sponsored Link
Ads by Google

Response Number 1
Name: ghostdog
Date: July 16, 2006 at 01:09:11 Pacific
Reply:

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


0

Response Number 2
Name: Sun
Date: July 16, 2006 at 09:46:59 Pacific
Reply:

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


0

Response Number 3
Name: Sun
Date: July 16, 2006 at 09:55:47 Pacific
Reply:

Soooooooorry
Thats fine know
:))

Thankx in advance


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: What is wrong?

What is wrong with this script? www.computing.net/answers/unix/what-is-wrong-with-this-script/1915.html

Does anybody know what is SUN stand for? www.computing.net/answers/unix/does-anybody-know-what-is-sun-stand-for/250.html

What is unix www.computing.net/answers/unix/what-is-unix/5919.html