15+ String manipulation examples for Shell scripting

15+ String manipulation examples for Shell scripting

瀏覽:466
日期:2025-06-09
Example9: Printing characters from 3rd to 7th char. The below code will print VAR1 value from 3rd position till 5 chars from that position, so up to 7th. echo ${VAR1:2:5} Output: cxyza Example10: Print last 4 characters of a string. This will print last 4...看更多