Skip to content

Instantly share code, notes, and snippets.

@robinfang
Created March 10, 2015 07:04
Show Gist options
  • Select an option

  • Save robinfang/1a63fcd3da30ae05974f to your computer and use it in GitHub Desktop.

Select an option

Save robinfang/1a63fcd3da30ae05974f to your computer and use it in GitHub Desktop.
对应数据集http://strict.dista.uninsubria.it/?p=364 将形如6018932 78569316,214680621,1780528处理成6018932,78569316\n6018932,214680621
cat graph2009.txt |awk -F '[\t,]' '{for(i=2;i<=NF;i++)printf "%d,%d\n",$1,$i}' > g2009.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment