Advertisement
Tariqul_Islam

Count the number of elements in an Array

Aug 9th, 2020
1,479
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.04 KB | None | 0 0
  1. #!/bin/bash
  2. arr=($(cat))
  3. echo ${#arr[@]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement