Article 4ZPWG Count a position of word in variable

Count a position of word in variable

by
pedropt
from LinuxQuestions.org on (#4ZPWG)
on this code
Quote:
var="aaa bbb ccc ddd eeee"
how can i know that bbb is the 2nd word in variable ?

thankslatest?d=yIl2AUoC8zA latest?i=BtjvIH0xXOM:cB4ZAZU-dHk:F7zBnMy latest?i=BtjvIH0xXOM:cB4ZAZU-dHk:V_sGLiP latest?d=qj6IDK7rITs latest?i=BtjvIH0xXOM:cB4ZAZU-dHk:gIN9vFwBtjvIH0xXOM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments