Hi have the following command:
lsscsi | grep HITACHI | awk '{print $6}'
I want that the output will be the number of lines of the original output. For example, if the original output is:
/dev/sda
/dev/sdb
/dev/sdc
The final output will be 3
.