Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ptids=(`cd /dev/disk/by-id/;ls`)
- idcount=${#ptids[@]}
- for (( c=0; c<${idcount}; c++ )); do
- devs[c]=(`readlink /dev/disk/by-id/${ptids[$c]} | sed 's/\.\.\/\.\.\///'`)
- echo "${devs[c]}"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement