How do I check if a directory contains files? How do I find out if a directory contains files using bash shell under Linux or Unix like operating systems?
I‘m writing a shell script for automation purpose. The output the path of the current working directory is stored in $PWD or it can be obtained using the pwd command. How do I find out find out 3rd field separated by the forward slash (/) delimiter using $PWD under Unix like operating systems?
How can I iterate bash for loop using a variable range of numbers in Unix or Linux or BSD or Apple OS X operating systems?