Question: Write a bash script to find all the files ending with .c recursively for every directory in your current working directory, then copy each one
Write a bash script to find all the files ending with .c recursively for every directory in your current working directory, then copy each one to a folder called programs, need handle duplicates by appending the number to the end of the file (ex main.c main-1.c ) compile them and generate a report
report should look like:
main.c compiles
prog2.c failed
main-2.c compiles
etc.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
