To determine the number of files in the Unix directory, use the following command.
ls -l | grep -c "^-.*"
Thinking Beyond Programming
To determine the number of files in the Unix directory, use the following command.
ls -l | grep -c "^-.*"
Previous post: Merging Files in Unix
Next post: Validating Numeric and Non-Numeric Values