Skip to content

gitunique/wopr-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

wopr is a neat application for generating visualisations in a terminal. https://github.com/yaronn/wopr/blob/master/README.md

I wanted to generate coordinates to use on a world map that represents the location of various CERT capabilities around the world. To do this, a list of ccTLDs per community is used to get the lat and long coordinates for the capital of that country, these are then rendered on the world map available in wopr.

A complete sample is included in cert-communities.xml

export COLOUR=green
export CHAR=@
export FILE=input_file
for cc in $(cat $FILE );
    do
        grep ,$cc, inputs/country-capitals.csv;
    done |
awk -F, -v var=$COLOUR -v var2=$CHAR '{print "<m lat=\""$3"\" lon=\""$4"\" color=\""var"\" char=\""var2"\"/>"}'

About

Scripts for generating wopr input files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published