Suppose this is the output of
pwd
:
/home/amarakon/.local/src/amarakon/scripts/src
How can I change it to this:
~/.local/src/amarakon/scripts/src
I tried this command:
pwd | sed 's|/home/.*|~|'
But this it the output:
~
Asked by Amarakon
(373 rep)
Jun 15, 2022, 01:28 AM
Last activity: Mar 26, 2024, 04:30 AM
Last activity: Mar 26, 2024, 04:30 AM