How to get second string using bash -


this question has answer here:

how second string in

te-2025|2bc80a34b83d11289a352f7d8a2e47204c283b4f|test| 

using bash?

that 2bc80a34b83d11289a352f7d8a2e47204c283b4f

this not duplicate. want second string not first!

ifs='|' read -r first second _ <<<'pr-2025|2bc80a34b83d11289a352f7d8a2e47204c283b4f|test|' echo "$second" 

Comments