Created
February 8, 2022 14:14
-
-
Save JSquar/d8c82f11c852d3c61188e4c98096565c to your computer and use it in GitHub Desktop.
Alias to echo environmental variables with linebreaks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| splitter='sed '\''s/:/\n/g'\'' <<<' |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of
echo $PATHyou can usesplitter $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.