8

Linux scipt variable is not recognized properly

view full story
linux-howto

http://stackoverflow.com – I have a question about shell scripting in Linux. I've been trying to get this code working for hours now, and it does something I don't understand. The purpose of the code would be to add users with the values for the name, gecos and group in a csv file. the csv file is formatted as followed: U12341;Mario Speedwagon;docent U12342;Petey Cruiser;classA This is my code, I removed the group function in useradd temporary as it was easier to debug that way. It kept telling me that ` was an invalid name for the group. So I tried putting the variables on screen with an echo and noticed something v (HowTos)