john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Mysql table join cut sed convert to java properties file

mysql -hlocalhost -uroot -p < story-title-reads.sql --table > originalCount.table

set names utf8;
select node.title,node_counter.totalcount from johnpfe5_physics.node left join johnpfe5_physics.node_counter on node.nid = node_counter.nid;

| Топ 10 на физичните открития за 2011г. според Physics World                                                                                                           |        129 |
| Слънцето посреща Венера на 06.06.2012                                                                                                                                         |        177 |

cat originalCount.table | cut -d'|' -f2,3 > originalCountMiddle.table

Топ 10 на физичните открития за 2011г. според Physics World                                                                                                           |        129 
 Слънцето посреща Венера на 06.06.2012                                                                                                                                         |        177

sed 's/|/=/g' -i  originalCountMiddle.table

  • « Security reset password ubuntu windows chntpw
  • Ldap apacheds custom schema ldif »

Published

Aug 23, 2012

Category

sql

~67 words

Tags

  • convert 7
  • cut 2
  • java properties file 1
  • join 3
  • mysql 18
  • sed 3
  • sql 18
  • table 5