regex - delimiter inside reqular expression Awk -
i have term aa-and-bb in 10th column of tab limited file, file.tsv.
i can aa-and-bb as
cat file.tsv | awk 'begin{fs="\t"};{print $10}' how further aa aa-and-bb?
you can use split().
split( $10, arr, "-" ); print arr[ 1 ];
Comments
Post a Comment