5 for col in "Device Model" "User Capacity"
7 # sed and sort is required for join later
8 grep "$col" /dev/shm/smart.sda.* | sed 's/:/: /' | sed "s/$col: */ : /" | sort | tee /tmp/s.this
10 if [ -e /tmp/s.last ] ; then
11 join -a 1 /tmp/s.last /tmp/s.this | tee /tmp/s.new
13 mv /tmp/s.this /tmp/s.last
17 cat /tmp/s.new | column -t -s :