The goal of the script is to get the last name and the first and last letter of the first name and provide is as an eventual username for the useradd command. An example of this is: John Doe, The desired username would be doejn.
I can get the CSV file read into the script by using this: (The CSV File has a Header of "First Name" and "Last Name")
employeeData = CSV.parse(File.read("employeedata.csv"), headers: true)
After that I have no clue how to use the data that is in the employeeData variable.