help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] Is there a way to combine $( and ${%}?


From: Peng Yu
Subject: [Help-bash] Is there a way to combine $( and ${%}?
Date: Thu, 7 Dec 2017 21:58:34 -0600

Hi,

I have the following commands. Is there a way to combine them into one command?

x=$(readlink -e "$0")
x=${x%/*}

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]