I want to remove the last entry in my array, and I want the array to show me that it has 1 less entry when I am using the ${#array[@]}
. This is the current line I am using:
unset GreppedURLs[${#GreppedURLs[@]} -1]
Please correct me and show me the right way.
See Question&Answers more detail:os