#!/bin/bash
phrase_file=/home/hadoop/phrases.txt
for content in `cat ${phrase_file}`
do
phrase=`[b][color=#FF0000]cat ${content}[/color][/b]| awk 'BEGIN{FS=";"}{print $1}'`
done
phrases.txt文件格式如下: A previous rep told me;1280
照理说代码是ok的,但调试结果是这样: + for content in '`cat ${phrase_file}`' ++ cat A ++ awk 'BEGIN{FS=";"}{print $2}'