Type in a command, or "ls dictionary" to search all commands for "dictionary", etc.

strFind

(This command has been awarded a Yubnub Golden Egg)

http://jonathanaquino.com/yubscripts/strings/stringmanip.php?command=strfind&find=${find}&reverse=${reverse=FALSE}&string=${string}&xn_auth=no
NAME
    strFind - Returns the position of a string or character within another string

SYNOPSIS
    strFind -find [TEXT TO FIND] -string [STRING TO BE SEARCHED] -reverse [REVERSE SEARCH]

EXAMPLES
    strFind -find b -string abcabc   (returns: 2)
    strFind -find b -string abcabc -reverse true   (returns: 5)
    strFind -find z -string abcabc   (returns: 0)

DESCRIPTION
    Returns the position of the first occurence of a string or character within another string.
    If nothing is found, the command returns 0.
    
    Set -reverse to TRUE if you wish to find the first instance starting from the end of the string.

    This command IS case sensitive.

AUTHOR
    Allen Ormond <aormond (at) fromrocks (dot) com>
    
247850 uses - Created 2005-08-13 19:40:44 - Last used 2019-05-15 09:57:55
Is this command broken? Tell Jon if you know how to fix it.