$ echo "unix:bash/scripting:12"
unix:bash/scripting:12
Purpose: find the character after the word "bash"
$ echo "unix:bash/scripting:12" | sed 's/.*bash\(.\).*/\1/'
/
.
"Where there is a shell, there is a WAY !!" Blog on Awk, Sed, BASH ones liners and scripts.
$ echo "unix:bash/scripting:12"
unix:bash/scripting:12
$ echo "unix:bash/scripting:12" | sed 's/.*bash\(.\).*/\1/'
/
© Jadu Saikia www.UNIXCL.com
No comments:
Post a Comment