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
Post a Comment