Unfortunately I do not have any code as a starting point as I have no idea where to begin. I need to create a bash script named dircheck that allows the user to run the program with a directory path (e.g. ./dircheck ~Documents/unit/backup
) and for the script to output to the terminal the following:
name of directory entered has:
x empty files,
x files with data,
x empty directories,
x non-empty directories
As you can see I need to output how many files the directory has that are empty, how many files the directory has that have data, how many directories that are empty, and how many directories that have data.
Any help would be greatly appreciated!