I currently have something of the form
abc=`find ~/$folder .. etc
I’d like to know how to get the number of items in abc:
abc_length = ?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use array:
Retrieve n-th result, say 10th:
Or list all:
Update: asker doesn’t seem to want to process in script, so:
You may want to reduce the number by 1 because the first result is
~/$folder: