Skip to content

Instantly share code, notes, and snippets.

@l0b0
Created December 22, 2010 13:32

Revisions

  1. l0b0 created this gist Dec 22, 2010.
    11 changes: 11 additions & 0 deletions fstab-missing.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    grep -v '^$\|^#' /etc/fstab | while read fs_spec fs_file dummy
    do
    if [ ! -e "$fs_spec" ] && [ "$fs_spec" != 'none' ]
    then
    echo "$fs_spec"
    fi
    if [ ! -e "$fs_file" ]
    then
    echo "$fs_file"
    fi
    done