I have a question about sed.
Output:
Filesystem avail
rpool/ROOT/s10_u11_201704 244719726
Wanted information:
s10_u11_201704
I tried:
df -b / | sed '1d;s/.*\/\(*\ \)\ .*/\1/g'
The \(*\ \)
does not work.
I have a question about sed.
Output:
Filesystem avail
rpool/ROOT/s10_u11_201704 244719726
Wanted information:
s10_u11_201704
I tried:
df -b / | sed '1d;s/.*\/\(*\ \)\ .*/\1/g'
The \(*\ \)
does not work.
using
awk
:Using
sed
:Disclaimer:
df -b
is not available in any of available distros to me.