如何在我的提示中显示 $ 之前的目录?
bash prompt ubuntu directory
我们如何使用sed或awk转换unix为/u/n/i/x/. 我能够用 Python 做到这一点,如下所示:
sed
awk
unix
/u/n/i/x/
separator='/' separator.join(string)+separator
但是我们如何在 Shell 中实现这一点呢?
sed awk text-processing
awk ×1
bash ×1
directory ×1
prompt ×1
sed ×1
text-processing ×1
ubuntu ×1