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?

link|improve this question

77% accept rate
feedback

1 Answer

up vote 1 down vote accepted

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
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.