我如何传递参数以在Linux中运行。 我在文件中一行一行地变红并在后台运行esch记录
while read -r record
do
reccount=$(( reccount + 1 ))
#function call
proceed_tasks_function(record) &
done
该功能
proceed_tasks_function(/*take the record from function call*/)
{
### parse input record
contact_email=`echo "$record" | cut -f5 -d ''`
echo "contact email is $contact_email"
credit_card_id=`echo "$record" | cut -f6 -d ''`
echo "credit card id is $credit_card_id"
ref_nr=`echo "$record" | cut -f7 -d ''`
echo "reference nr is $ref_nr"
cny_cd=`echo "$record" | cut -f8 -d ''`
echo "country code is $cny_cd"
lang=`echo "$record" | cut -f9 -d ''`
echo "language is $lang"
pmt_ir=`echo "$record" | cut -f13 -d ''`
echo "payment ir is $pmt_ir"
}