Search Results

Search: Posts Made By: limamichelle
21,151
Posted By durden_tyler
Assuming that your data looks like this - ...
Assuming that your data looks like this -


$
$ cat f35
FirstName_MiddleName1_LastName_ID
FirstName_LastName_ID
FirstName_LastName_XY
FirstName_LastName_XYZ...
3,656
Posted By Scrutinizer
Try this loop instead that reads the values...
Try this loop instead that reads the values directly into the variables:
while IFS=, read InstrName VarB VarC VarD VarE VarF x
do
if [ "$VarC" = "$VarD" ]; then
Total=$((VarC + VarF))
...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 08:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy