4
rated 0 times
[
4]
[
0]
/ answers: 1 / hits: 2288
/ 2 Years ago, mon, may 23, 2022, 9:15:15
For example I have this output:
string1 anynameveryveryverylong string2
string1 othernameveryveryverylong string2
I want truncate the name to the first ten characters:
string1 anynamever string2
string1 othernamev string2
a pseudo regex can be:
perl -pe "s/([^ ]+ )([^ ]+) /12{10} /g"
How do i get this?
More From » bash