Skip to main content
2 of 3
text to code, edited title

bash: save only the characters following/proceeding the full-stop

Say I have a string such as

="/home/Rob/.SpaceVim"

and I want to save only the characters following/proceeding the full-stop. How do I do this?

I know $ is also used to represent the last character, and \ can be used to make character in string literal. So I've tried stuff like awk '\.$' but not had any success.

Thanks in advance,

Rob

1toneboy
  • 493
  • 1
  • 4
  • 16