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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -