9 Jul
2014
9 Jul
'14
16:46
On 07/09/2014 12:20 PM, Bernhard Voelker wrote:
On 07/09/2014 06:00 PM, Roman Bysh wrote:
tune2fs -l $(df / | gawk 'FNR==2 {print $1}' )
BTW: Time to revisit 'info df': there's no need for awk(1)ward field parsing of df's output anymore. Since coreutils-8.21, df supports the --output option by which you can directly select which column you want to print. (You still have to get rid of the header line, here using "sed 1q"):
tune2fs -l $(df --output=source / | sed 1d)
Have a nice day, Berny Good one! It's so much simpler ;-)
Thank you Roman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org