[clue] Bash baffler

Vishal Verma stellarhopper at gmail.com
Wed Jun 4 17:04:22 MDT 2014


But the real problem is you're using both $() and ``
It is trying to execute the text output of `df -hl  | awk '{print
$NF}' | grep -v ^\/dev` and feeding it into another subshell as a
command, which of course it isn't.

-Vishal

On Wed, Jun 4, 2014 at 4:59 PM, Vishal Verma <stellarhopper at gmail.com> wrote:
> On Wed, Jun 4, 2014 at 4:53 PM,  <foo7775 at comcast.net> wrote:
>> df -hl  | awk '{print $NF}' | grep -v ^\/dev
>
> The 'on' seems to be coming from the last column of the 'header' of
> the df command:
> Filesystem      Size  Used Avail Use% Mounted on
>
> You want something like:
> df -hl  | grep -v "^Filesystem" | awk '{print $NF}' | grep -v ^\/dev
>
> -Vishal


More information about the clue mailing list