Skip to content

Instantly share code, notes, and snippets.

@l0b0
Created December 22, 2010 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save l0b0/751501 to your computer and use it in GitHub Desktop.
Save l0b0/751501 to your computer and use it in GitHub Desktop.
fstab entries which are not local filesystem entries
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment