Bash Script

Code: File is read in from wrapper and declared file_name

IFS=","
sed 1d $file_name | while read Name Job Age Title
 
 
do
count=0
   dirname=$Name
   while [ -d "$dirname" ]
   do
       ((count++))
       dirname="${Name}$count"
   done
 
   echo "=================="
   echo "Name: $Name"
   echo "Job: $Job"
   echo "Age: $Age"
   echo "Title: $Title"
   echo "==================="
 
done  <$file_name
 

When script is run(first two outputs, actually outputs everythin stoed in the variable but its just to show the issue at the top )

==================
Name: Name
Job: Job
Age: Age
Title: Title
===================
==================
Name: James
Job: Fireman
Age: 22
Title: Mr
===================
==================

so csv file looks like this

Name,Job,Age,Title
James,Fireman,22,Mr
etc,etc,etc,etc

When read into the file i want the header not to be read so when it's printed to the screen it doesn't output Name: Name. Should look like of Name: (Then a real user name like James)

You are using two stdin feeds to the while loop:

sed 1d $file_name |

and

<$file_name

If you leave the latter it should skip the first line because of the sed statement...