regex - Sed substitution with back reference not working -


i receive output program tab separated values, of trying obtain second using sed. using this:

sed -r -e "s/(^[^\t]+\t)([^\t]+\t)(.*$)/\2/" 

however not seem find matches. have tried in rubular give me match want.

enter image description here

there specialized tool selecting columns text files called cut:

cut -f2 file 

here instruct select second column, see manpage more information. tab default column separator.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -