Search This Blog

Bash script: extract substring from brackets

To extract substring from brackets: Name: [John Simith].




echo $str | cut -d "[" -f2 | cut -d "]" -f1



see also

No comments:

Post a Comment