Wednesday, 16 May 2018

How to rmdev a list of hdisk in one shot in AIX


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

Where does Skype save my contact&#39;s avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...