Shell/Bash: bash split and get last Example
Shell/Bash Example: This is the "bash split and get last" Example. compiled from many sources on the internet by SimpleTutorials.org
bash split and get last
Use rev command altogether with cut command as follows: echo "a1 a2 a3 a4 a5" | rev | cut -d ' ' -f '1' | rev #rev reverses string, then you cut from 2th field to end and reverse back
* Summary: This "bash split and get last" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!