Tag: BASH Shell
Bash Shell Script To Test For Empty Folder
in Categories BASH Shell last updated July 6, 2012Linux / Unix: Find Hidden Directories, Files and Folders
in Categories UNIX last updated June 26, 2012Unix / Linux Shell: Parse Text CVS File Separator By Field
in Categories BASH Shell, Linux, UNIX last updated March 4, 2014I 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?