SHARE
TWEET

Untitled

a guest Aug 20th, 2019 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. IFS=","
  2.  
  3. declare -A arr1  
  4. declare -A arr2  
  5. declare -A arr3
  6.  
  7. while read -r -a linedata
  8. do
  9.     arr1["${linedata[1]}"]="${linedata[10]}"
  10.     arr3["${linedata[1]}"]="${linedata[0]}"
  11.  
  12.     echo repeat -"${linedata[2]}"-
  13.  
  14.     if [[ -n "${linedata[2]}" ]] && [[ ! "${linedata[2]}" == "" ]] ; then
  15.         arr2["${linedata[2]}"]="${linedata[10]}"
  16.         arr3["${linedata[2]}"]="${linedata[0]}"
  17.     else
  18.         echo skipped for "${linedata[2]}"
  19.     fi
  20. done < $csvfile
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top