You work for a company that collects billing data and manages the billing for several customers. Last week, a customer sent you a number of files that were not intended for you. The customer just discovered the problem and is not sure about the files that were sent to you. The customer knows that all files end with .csv and the files that customers send end with .dat. Write a script that will use a loop to generate a list of the files to be deleted – so that the customer can see what you received – and delete the files one at a time in the loop.

I just started my linux class and i'm about 92% lost. haha If anyone could solve this for me, along with, a brief explanation of what is being done in the script and possibly any alternatives, I would greatly appreciate it.

I don't know much about this, but I am a fast learner when someone is willing to teach me and guide me properly. Please help me save my class from a careless instructor. We really wish I had a better instructor. I'm eager to learn this stuff, but the instructor only seems to be cashing a paycheck every week.

This simply says:« From the root directory, recursively search files ending with .csv or .dat which have been modified within the last seven days ; print their absolute path, then delete them. And don't display permission errorsby redirecting file descriptor 2, which is STDERR, to /dev/null. »

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum