Ask your own question, for FREE!
Computer Science 16 Online
OpenStudy (anonymous):

Need help for shell scripts i.e. Device a scripts that accepts two directions named A1 and A2 , and deletes those files in A2 which are identical to their namesake in A1?Plzz help me out

OpenStudy (shadowfiend):

I'm guessing that's meant to be devise a script and two directories?

OpenStudy (anonymous):

don't know, it is my assignment . And i know nothing about shell programming

OpenStudy (shadowfiend):

There are some decent programming guides out there. Look into bash, and the for... in loop in particular. Something like for filename in `ls A1`... should be a good start. Nest two of those loops, check for equality, run an rm when you find a match.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!