Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 499 Bytes
# function of script:
# returns the number of times each individual was sampled by
# Gesquiere et al. (2011)
# a) extract all IDs
# b) call script for each ID
# to store the results of a command into a variable,
# surround the command with backticks (`)
myIDS=`tail -n +2 ../data/Gesquiere2011_data.csv | cut -f 1 | sort -n | uniq`
for id in $myIDS
mycounts=`bash ../data/Gesquiere2011_data.csv $id`
echo "ID:" $id "counts:" $mycounts
You can’t perform that action at this time.