linux - Manipulating a text file with grep -


ok, have text file formatted this, has several rows going down.

example1:example2:example3 example1:example2:example3 example1:example2:example3 

i want use grep change this

example2:example3 

basically want take out first part before :

if please tell me how appreciated.

you can use cut utility filter out columns given delimiter.

in example, delimiter : , want every column starting second:

$ cut -d: -f2- < input.txt 

Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -