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
Also in C++:
- mount drive raspi
- how to copy paste in git bash
- git remove all branches except master windows
- How to discard files from stash in git
- use local image with minikube
- postman install ubuntu 18.04
- git tag from commit
- how to install pyaudio in ubuntu
- git update submodule recursive
- ffmpeg add two videos together
- webull on arch linux
- how to download pip3 in kali linux
- chromium for linux
- how to install rfkill in kali linux
- how to search for a word in files in linux
- database metasploit kali linux
- replace delimiter for enter command
- pom extract version linux
- how to install gimp in ubuntu
- shell_to_meterpreter
- set alias in ubuntu
- uninstalling audacity on linux
- git config global
- how to install flow on gatsbyjs