1
0
mirror of https://github.com/balkian/bitter.git synced 2024-09-27 18:51:42 +00:00
bitter/bin/print-replies.sh
J. Fernando Sánchez 53bb7edabc Add sh scripts
2018-03-19 14:35:07 +01:00

15 lines
252 B
Bash
Executable File

MAX_TAGS=100
function get_text {
while read line
do
echo $line
rtid=$(echo $line | awk -F"," '{print $2}')
text=$(grep -m 1 $rtid *.text.csv)
echo "$line - $text"
done < "/dev/stdin"
}
cat "$@" | get_text