If I have the following code:
twitter="https://twitter.com/username"
How do I use something like sed or awk to remove this:
https://twitter.com/
So I'm left with:
username
The task can be accomplished by basename
:
$ basename https://twitter.com/username
username