awk – a print field question
Johnny Rosenberg
gurus.knugum at gmail.com
Fri Feb 24 19:09:18 UTC 2012
Let's say that I have a string with an unknown number of spaces. How
can I assign all of them, except the two first ones to a variable?
For example:
x="This is an example of a sentence but you don't know how many words there is"
Now I want y to be "This is” and z to be "an example of a sentence but
you don't know how many words there is" using awk, but I can not
figure out how.
Any ideas?
Kind regards
Johnny Rosenberg
ジョニー・ローゼンバーグ
More information about the ubuntu-users
mailing list