So what I'm trying do do is make a script to read my input file and do stuff accordingly.
My input file gets sent to me in this format:
ID QTY
xxxxxxxxx,xxx
xxxxxxxxx,xx
xxxxxxxxx,xxx
xxxxxxxxx,xx
xxxxxxxxx,xx
Sometimes the ID is only 8 digits because of the number being smaller. I need it to be formatted with leading zeros if that occurs. Also, my input file has thousands of lines.
I have this so far
echo "${processNew}"
## Read the file line-by-line and output the id.
IFS=','
while read line
do
echo "%09d\n" $line
done < ${processNew}
xxxxxxxxx,xxxorxxxxxxxxx, the first part only?