Skip to content

Instantly share code, notes, and snippets.

@JSquar
Created February 8, 2022 14:14
Show Gist options
  • Select an option

  • Save JSquar/d8c82f11c852d3c61188e4c98096565c to your computer and use it in GitHub Desktop.

Select an option

Save JSquar/d8c82f11c852d3c61188e4c98096565c to your computer and use it in GitHub Desktop.
Alias to echo environmental variables with linebreaks
splitter='sed '\''s/:/\n/g'\'' <<<'
@JSquar
Copy link
Copy Markdown
Author

JSquar commented Feb 8, 2022

Instead of echo $PATH you can use splitter $PATH, each path component (separated with colons) will then printed to a new line. Should improve overview and works for everything, which uses a colon as a separator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment