I'm creating a script to automate adding users from a text file in Unix using Bash
I've read a file into a script which is being held in $FILE
The file is in the following format: e-mail;birthdate;groups;sharedFolder
I want to ignore the first line in the file and read the data into variables
I have already set the IFS to ';' earlier. Currently I have
sed 1d $FILE | while read EMAIL BIRTH GROUPS SHAREDFOLDER
do
echo "$EMAIL"
done < $FILE
But when I echo out the EMAIL variable, I get nothing