Created
March 29, 2020 11:10
-
-
Save papachristoumarios/62131ba4ee62f4742a014e39ba110a20 to your computer and use it in GitHub Desktop.
Convert undirected edgelist to directed with awk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
awk '{print $2 " " $1}' $1 >$1_rev | |
cat $1 $1_rev >$1_merged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment