awk может сделать все, что делает ваш конвейер:
awk '
# skip comments and empty lines
$1 ~ /^#/ || NF == 0 {next}
# skip mountpoints not beginning with a slash
$2 ~/^[^/]/ {next}
# skip / and /data
$2 == "/" || $2 == "/data" {next}
{print $2}
' /etc/fstab
или, если вы любитель белья:
awk 'NF&&$1!~/^#/&&$2!~/^[^/]/&&$2!="/"&&$2!="/data" {print $2}' /etc/fstab