1 2 3 4 5 6 7
#!/bin/sh # row from df-h input v hd_space="$(df -h | awk '(NR==4){print $4}')" # column from df -h output ^ echo "$hd_space"