expr

Evaluate expressions and manipulate strings. Get string length: expr length…

expr

Evaluate expressions and manipulate strings.

expr length {{string}}

expr {{first_argument}} {{operator}} {{second_argument}}

echo $(expr index {{string}} {{substring}})

echo $(expr substr {{string}} {{position_to_start}} {{number_of_characters}}

echo $(expr {{string}} : '\({{regular_expression}}\)')

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← expose exrex →