try:
awk 'NF==12{sub(/pts/,"",$12);printf "%s %s, %s ", $1, $2, $12}' file
Ввод:
2010/01/12/ 12:00 some un related alapha 129495 and the interesting value 45pts
2010/01/12/ 15:00 some un related alapha 129495 and no interesting value
2010/01/13/ 09:00 some un related alapha 345678 and the interesting value 60pts
Выход:
2010/01/12/ 12:00, 45 2010/01/13/ 09:00, 60
Обновлено для новых требований:
Команда:
awk 'NF==12{gsub(/\//,"-",$1)sub(/pts/,"",$12);printf "%s%s %s \n", $1, $2, $12}' file
Вывод:
2010-01-12-12:00 45
2010-01-13-09:00 60
HTH Крис