Skip to main content
2nd Edit Attempt. This appeared in review Low Quality. I have kept the original answer, but appended a clause at the beginning of the sentence.
Source Link

TryTo extract the last part of a path, try using basename...

basename $(pwd);

Try using basename...

basename $(pwd);

To extract the last part of a path, try using basename...

basename $(pwd);
Source Link
alex
  • 489.4k
  • 204
  • 888
  • 989

Try using basename...

basename $(pwd);