So I have a textfile of which I want to remove everything to the first colon (including the colon). So for example if this is the input
0000007ba9ec6950086ce79a8f3a389db4235830:9515rfsvk
000000da2a12da3fbe01a95bddb8ee183c62b94d:letmein2x
000000edf3179a1cf4c354471a897ab7f420bd52:heychudi:rbhai
000000f636f0d7cbc963a62f3a1bc87c9c985a04:cornetti
0000010a15f5b9315ef8e113f139fa413d1f2eb2:3648067PY128
Then this should be the output
9515rfsvk
letmein2x
heychudi:rbhai
cornetti
3648067PY128
Note that the second colon in line 3 remain, only from the start of each line to (including) the first column should be removed.
Is there a quick way to do this with grep or awk?
/
in the target. – Quasímodo Oct 12 '20 at 12:45