unix scripting

I work for a small ISP (Internet Service Provider) and we are using Linux and Unix-like operating system with bash shell. I want to write a shell script to parse the csv file line by line. Then line must be parse again field by field. The sample input file is as follows:

example.com,username,groupname,homedir,md5password,permission,secondarygroup

I need to extract each of these example.com,username,groupname,homedir,md5password,permission,secondarygroup fields and passed to the different system utilities. How do I write a shell script to automate this task and use the bash shell to parse a text file?

{ 7 comments }

Q. Can you tell me how to write a UNIX korn shell script program? I’m new to UNIX scripting and HP-UX UNIX operating system.

{ 14 comments }

How do I append additional text a variable? For e.g., I’ve a vech set as follows:
vech=”London”

I’d like to add (append) “Bus” word to $vevh under UNIX scripting using bash?

{ 10 comments }