On 24 March 2012 11:37, Pablo Mendes <[email protected]> wrote:
> However, as a quick fix you can also use awk, perl or whatever to invert the
> fields in the file:
>
> cat output/occs.uriSorted.tsv | cut -d$'\t' -f 2,3 | perl -F/\\t/ -lane
> 'print "$F[1]\t$F[0]";' > output/surfaceForms-fromOccs.tsv

The awk version is
awk -F'\t' '{print $1 "\t" $0}'
as much as I love perl, awk needs less typing for this :)

-- 
<Sefam> Are any of the mentors around?
<jimregan> yes, they're the ones trolling you

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Dbp-spotlight-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users

Reply via email to