14 Mar
2016
14 Mar
'16
21:52
On 03/14/2016 05:41 PM, jdd wrote:
Le 14/03/2016 21:22, Uzair Shamim a écrit :
df | awk -F" " '!_[$1]++'
how can I use this in an alias (usually alias strings are between single quotes, but they are already used here)
thanks jdd
This seems to work on my system, you just have to escape the single quotes and add that $ at the start. alias test=$'df | awk -F" " \'!_[$1]++\'' -- Regards, Uzair Shamim