Skip to content

Instantly share code, notes, and snippets.

@jorgeacortes
Created October 25, 2020 11:39
Show Gist options
  • Save jorgeacortes/de852046735cf6180722e4d49030c06e to your computer and use it in GitHub Desktop.
Save jorgeacortes/de852046735cf6180722e4d49030c06e to your computer and use it in GitHub Desktop.
Linux shell useful use cases

Linux shell useful use cases

Useful examples

Convert an absolute path into a relative one (example)

$ echo "/home/stm32/ws/Core/main.c" | sed -e 's/^\/home\/stm32\/ws\///'
Core/main.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment