In AIX I have a long list (more then 30) of hdisks I need to delete them in one shot, what command can I use?
Answer
Generic answer for any command on any Unix-like OS:
while read -r item; do
rmdev "$item"
done < itemlist.txt
Or:
xargs -d'\n' -n1 rmdev < itemlist.txt
No comments:
Post a Comment