btrfish/get-subvols.fish

3 lines
87 B
Fish
Executable File

#!/usr/bin/fish
cat /etc/fstab | grep subvol | sed 's/.*subvol=//;s/)//;s/\t\| \|0//g'