anonymous
  • 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
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
katieb
  • katieb
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
shadowfiend
  • shadowfiend
I'm guessing that's meant to be devise a script and two directories?
anonymous
  • anonymous
don't know, it is my assignment . And i know nothing about shell programming
shadowfiend
  • 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.

Looking for something else?

Not the answer you are looking for? Search for more explanations.