Edit: Added backup, exclusion of comments and inline editing: sed -i.old 's/^\([^#].*usbfs.*\)/#\1/g' /etc/fstab
Edit: ^#].*usbfs. *\)/#\1/ g' /etc/fstab
Added backup, exclusion of comments and inline editing:
sed -i.old 's/^\([